MSAL Example for Web API with Flask #499
Replies: 2 comments
-
Yes it is strange that the official docs do not reference it. Does anyone have an equivalent implementation for the optionally call Microsoft Graph API tutorial. The closest example I see is here |
Beta Was this translation helpful? Give feedback.
-
Hmm, I also can't find the web api sample. @rayluo - do we have any? There don't seem to be any listed as official samples https://learn.microsoft.com/en-us/entra/identity-platform/sample-v2-code?tabs=apptype In the meantime, you can follow the NodeJS web api sample, it should be fairly similar - https://github.com/Azure-Samples/ms-identity-javascript-tutorial/tree/main/3-Authorization-II/1-call-api Just note that Microsoft does not produce any token validation libraries except for .NET. General Purpose jwt token validation libraries should work fine in single tenant scenarios. It's more complex for multi-tenant scenarios. |
Beta Was this translation helpful? Give feedback.
-
While searching through the several examples, I saw that there is no Use-Case for MSAL for a Web API and Flask. Is this setup even supported or planned to be supported by MSAL Python.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions