Authentication using Access Token

How can I manage the authentication to an Azure SQL database using an access token, how is the life cycle of that token managed?

Replicate something similar to the image.

Thanks for any help.