Migrating from ADAL to MSAL in python

Microsoft has announced that it will stop adding features to ADAL from 30 Jun 2020, and will only add security fixes through 30 Jun 2022. The recommended approach is to upgrade from ADAL to MSAL, which also support OAuth 2.0 endpoints, which support personal accounts.

Microsoft provides a few guides to help this migration:

  • Function mapping between ADAL and MSAL
  • MSAL-python documentation page which gives details of how the different API is being used, especially between the Public context and confidential context

The migration has been smooth after plugging the correct API replacement and the variables into it.

Leave a Comment