Using assets in Smart Contracts

Hi everybody,
I work on a authentication system project where a user tries to authenticate itself through a Smart Contract I’m writing in PyTeal.
So I need to put and to get assets (of user’s identity) located in Blockchain directly in Smart Contract code. Is it possible? How can I do it in PyTeal?

You can if you are using stateful smart contracts: Overview - Algorand Developer Portal