Microsoft Authentication Libraries for Java and Python are now generally available

Microsoft identity platform team

Hello developers!

Earlier this year at //Build, we announced the general availability of Microsoft Authentication Libraries (MSAL) for .NET and JavaScript, followed by iOS, macOS and Android. As the year ends, we’re excited to announce that MSAL Java and MSAL Python are now generally available!

MSAL enables applications to integrate with the Microsoft identity platform by authenticating Microsoft identities and providing secure access to APIs on the Microsoft identity platform.

Java and Python developers can now take advantage of the key features of MSAL, including:

  • Authentication with different types of identities: MSAL allows you to authenticate users with any Microsoft identity – personal accounts, work or school accounts and social identities through Azure AD B2C. 
  • Multiple authentication scenarios: With MSAL Java and MSAL Python, you can authenticate both users and applications and build authentication experiences for different types of applications such as web apps, desktop apps, and daemons. For a complete list, see Scenarios and supported platforms.
  • Updated API: MSAL Java and MSAL Python provide an updated API that has conceptual consistency with the other MSAL SDKs. While the API follows the language specific patterns of Java and Python, you’ll find that the object model and method names match the other MSAL SDKs to make it easier for you to develop applications on multiple platforms.
  • Support for sharing authentication state between applications: MSAL Java and MSAL Python provide an in-memory token cache that you can persist to a storage format of your choice and then share the cache with other applications. This allows the authentication state to be accessed across applications using MSAL Java, MSAL Python, or MSAL .NET. Microsoft applications such as Visual Studio and Azure SDKs are already using this feature today.

Get Started 

We have several samples for you to try out and use MSAL in your scenarios. 

Java developers can get started with the MSAL Java docs for details about scenarios, usage, and relevant concepts. If your application is using the previous ADAL Java library, you can follow this migration guide to update to MSAL Java.

Python developers 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.

Engage with us 

The Microsoft identity SDKs are open source and you can share your feedback or reach us for support through GitHub (Java, Python) and StackOverflow

Thanks for supporting the Microsoft identity platform and we’re excited to see what you build with our MSAL libraries! 

– The Microsoft identity platform team 

Feedback usabilla icon