Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to migrate from adal python to msal python?


Asked by Julio Hendrix on Dec 10, 2021 FAQ



If you are starting a new project, you can get started with the MSAL Python docs for details about the scenarios, usage, and relevant concepts. If your application is using the previous ADAL Python library, you can follow this migration guide to update to MSAL Python. Existing applications relying on ADAL Python will continue to work.
Besides,
Refer to the Wiki on GitHub for more details on the MSAL Python functionality and usage. If your application is using ADAL Python, we recommend you update it to use MSAL Python. No new feature work will be done in ADAL Python. See the ADAL to MSAL migration guide.
In respect to this, Existing applications relying on ADAL Python will continue to work. The ADAL for Python library enables python applications to authenticate with Azure AD and get tokens to access Azure AD protected web resources.
And,
One reason for migrating those refresh tokens is to prevent existing users from needing to sign in again when you migrate your app to MSAL for Python. The method for migrating a refresh token is to use MSAL for Python to acquire a new access token using the previous refresh token.
Just so,
Now, you might ask yourself why you’d want to move to the Microsoft Authentication Library (MSAL) from the Azure Active Directory Authentication Library (ADAL), short from the deprecation notice above. Because MSAL uses the version 2 endpoint, it’s offers more secure and more resilient access to the information in Azure Active Directory.