Search code examples
pythonangularazure-active-directorysaml-2.0azure-ad-msal

Implement Azure AD authentication using SAML in web app


I have successfully created Azure AD authentication using MSAL in the angular application, after that I passed the token to Django and validated the token from the azure.

Now I want to implement the SAML2 in Azure AD authentication.

Using this article https://learn.microsoft.com/en-us/azure/active-directory/saas-apps/saml-toolkit-tutorial, I have created SAML toolkit for Azure AD and got login url, logout url, AD Identifier url and certificate. Using this information, I don't know how to implement Azure AD authentication in angular or python.

I have read lot of article, nothing worked.


Solution

  • I have used this library to implement to SAML authentication using Django.

    pip install django_saml2_auth
    

    this library supports JWT token and uses Angular or any front-end application with Django

    https://github.com/fangli/django-saml2-auth