Reputation: 71
I have a Python/Flask app running on Azure app service with AAD authentication activated. AAD auth manages the whole authentication process and I have zero implementation for authentication in my code.
That was fine until now, but now I need some information about the logged in AAD user, such as username, email, department etc. How can I get these info with Python?
Upvotes: 0
Views: 620
Reputation: 702
After login make Ajax get request on {siteurl}/.auth/me. this will give you current logged in user information as claims and along with auth tokens.
Upvotes: 1