Currently have a Python web application hosted on an on-prem server and the plans are underway to migrate the application into an AWS EC2. We'd like to authenticate users via single sign on feature via Azure AD. Are you able to provide any resources on h

Shanaka Hendawitharana 20 Reputation points
2023-08-23T17:01:46.1366667+00:00

Hi Support,

Currently have a Python web application hosted on an on-prem server and the plans are underway to migrate the application into an AWS EC2.  We'd like to authenticate users via single sign on feature via Azure AD. Are you able to provide any resources on how to enable this feature against Azure AD in our custom develop application or I’m open to any other suggestions. Any help is much appreciated! Thank you!  

Best,

SHanaka

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,276 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Smith 2,926 Reputation points Microsoft Employee
    2023-08-24T13:49:37.5333333+00:00

    Hi @Shanaka Hendawitharana

    Thank reaching out to the community.

    Microsoft have the Microsoft Authentication Library for Python which allows you to configure your app so your users can authenticate in Azure AD.

    Please review the documentations below.

    https://learn.microsoft.com/en-us/python/api/overview/azure/active-directory?view=azure-python

    https://learn.microsoft.com/en-us/entra/msal/python/

    There are several sample apps and tutorials listed in the docs below you can run for testing purposes.

    https://learn.microsoft.com/en-us/azure/active-directory/develop/sample-v2-code?tabs=framework#python

    https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-web-app-sign-user-overview?tabs=python

    https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-web-app-python-sign-in?tabs=windows

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


1 additional answer

Sort by: Most helpful
  1. Shanaka Hendawitharana 20 Reputation points
    2023-08-24T23:05:39.8833333+00:00

    Hi @michael smith ,

    Thank you very much for your suggestions and providing much needed resources. I'll give it a try and post further inquires as may arises. Thanks!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.