Skip to content Skip to sidebar Skip to footer

Azure Python Flask App - Ad Authentication Issue

This could be a little complicated to explain, so will do my best. Current Solution I have a python flask app, which will be deployed to an App Service within Azure. I want the us

Solution 1:

If I understand your question correctly, you would rather use builtin Azure AD authentication than ADAL library.

It is very convenient to use builtin Azure AD authentication if you just want to use the sign in feature, you needn't to modify your code. But if you want to get the access token, you need to collect it yourself.

How to get the access token?

From your server code, the provider-specific tokens are injected into the request header, so you can easily access them.

App Service provides a built-in token store, which is a repository of tokens that are associated with the users of your web apps, but you must write code to collect, store, and refresh these tokens in your application.

Update:

enter image description here

Post a Comment for "Azure Python Flask App - Ad Authentication Issue"