Hi , Welcome to MS Q&A
To access the authentication token in your Python app service that uses Microsoft as an identity provider, you can use the access_token
property of the request
object. This property contains the access token that was obtained during the authentication process. You can access it in your Python code like this:
access_token = request.access_token
You can then use this access token to make authenticated requests to Microsoft Graph API or other Microsoft services.
For more information, you can refer to the Quickstart: Sign in users and call Microsoft Graph from a Python Flask web app guide.
References: https://learn.microsoft.com/en-us/azure/developer/python/sdk/authentication-overview?source=recommendations
Please let me know if any further questions
Thanks
Deepanshu