Implement Azure AD authentication using SAML in web app

Viewed 1921

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://docs.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.

3 Answers

This toolkit is simply an application used to test access to an Azure AD Enterprise application using SAML.

From the client-side, you need to add a client-side SAML stack to your code.

On the Azure AD side, you connect this stack to an Enterprise application.

There are comments relating to the ADAL / MSAL libraries. You cannot use these as they rely on OpenID Connect not SAML!

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

Related