Skip to content

A Python web application calling Microsoft graph that is secured using the Microsoft identity platform

License

Notifications You must be signed in to change notification settings

MTrevoux/ms-identity-python-webapp

 
 

Repository files navigation

page_type languages products description urlFragment
sample
python
azure-active-directory
This sample demonstrates a Python web application calling a Microsoft Graph that is secured using Azure Active Directory.
ms-identity-python-webapp

Integrating Microsoft Identity Platform with a Python web application

This is a Python web application that uses the Flask framework and the Microsoft identity platform to sign in users and make authenticated calls to the Microsoft Graph API.

Configuration

If you are configuring your Microsoft Entra ID app or Microsoft Entra External ID app

To get started with this sample, you have two options:

If you are configuring your B2C app

This sample can also work as a B2C app. If you are using a B2C tenant, follow Configure authentication in a sample Python web app by using Azure AD B2C.

Deployment

Once you finish testing this web app locally, you can deploy it to your production. You may choose any web app hosting services you want. Here we will describe how to deploy it to Azure App Service.

Contributing

If you find a bug in the sample, please raise the issue on GitHub Issues.

If you'd like to contribute to this sample, see CONTRIBUTING.MD.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

About

A Python web application calling Microsoft graph that is secured using the Microsoft identity platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 56.8%
  • Python 28.0%
  • HTML 15.2%