{"id":3851,"date":"2019-12-16T09:00:00","date_gmt":"2019-12-16T16:00:00","guid":{"rendered":"https:\/\/developer.microsoft.com\/en-us\/office\/blogs\/?p=3851"},"modified":"2019-12-16T09:00:00","modified_gmt":"2019-12-16T16:00:00","slug":"microsoft-authentication-libraries-for-java-and-python-are-now-generally-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/microsoft-authentication-libraries-for-java-and-python-are-now-generally-available\/","title":{"rendered":"Microsoft Authentication Libraries for Java and Python are now generally available"},"content":{"rendered":"<p>Hello developers!<\/p>\n<p>Earlier this year at \/\/Build, we announced the general availability of Microsoft Authentication Libraries (MSAL) for <a href=\"https:\/\/developer.microsoft.com\/en-us\/identity\/blogs\/msal-net-is-now-generally-available\/\">.NET and JavaScript<\/a>, followed by <a href=\"https:\/\/developer.microsoft.com\/en-us\/identity\/blogs\/microsoft-authentication-libraries-for-android-ios-and-macos-are-now-generally-available\/\">iOS, macOS and Android<\/a>. As the year ends, we\u2019re excited to announce that MSAL Java and MSAL Python are now generally available!<\/p>\n<p>MSAL enables applications to integrate with the <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/v2-overview\">Microsoft identity platform<\/a> by authenticating Microsoft identities and providing secure access to APIs on the Microsoft identity platform.<\/p>\n<p>Java and Python developers can now take advantage of the key features of MSAL, including:<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Authentication with\u00a0different types of identities:<\/strong>\u00a0MSAL allows you to\u00a0authenticate\u00a0users with any Microsoft identity \u2013\u00a0personal\u00a0accounts,\u00a0work or school accounts\u00a0and social identities through Azure AD B2C.\u00a0<\/li>\n<li><strong>Multiple authentication scenarios: <\/strong>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 <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/authentication-flows-app-scenarios#scenarios-and-supported-platforms-and-languages\">Scenarios and supported platforms<\/a>.<\/li>\n<li><strong>Updated API<\/strong>: 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\u2019ll 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.<\/li>\n<li><strong>Support for sharing\u00a0authentication state\u00a0between applications:\u00a0<\/strong>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.<\/li>\n<\/ul>\n<p><strong>Get\u00a0<\/strong><strong>Started<\/strong>\u00a0<\/p>\n<p>We have\u00a0several\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/sample-v2-code\" target=\"_blank\" rel=\"noreferrer noopener\">samples<\/a>\u00a0for you to try out and\u00a0use MSAL in\u00a0your scenarios.\u00a0<\/p>\n<p>Java developers can get started with the <a href=\"https:\/\/aka.ms\/msaljavadocs\">MSAL Java docs<\/a> for details about scenarios, usage, and relevant concepts. If your application is using the previous ADAL Java library, you can follow this <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/migrate-adal-msal-java\">migration guide<\/a> to update to MSAL Java.<\/p>\n<p>Python developers can get started with the <a href=\"https:\/\/aka.ms\/msalpythondocs\">MSAL Python docs<\/a> for details about the scenarios, usage, and relevant concepts. If your application is using the previous ADAL Python library, you can follow this <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/migrate-python-adal-msal\">migration guide<\/a> to update to MSAL Python.<\/p>\n<p><strong>Engage with us<\/strong>\u00a0<\/p>\n<p>The Microsoft\u00a0identity\u00a0SDKs\u00a0are open source and you can\u00a0share your feedback\u00a0or\u00a0reach\u00a0us\u00a0for support through GitHub (<a href=\"https:\/\/github.com\/AzureAD\/microsoft-authentication-library-for-java\/issues\/110\">Java<\/a>, <a href=\"https:\/\/github.com\/AzureAD\/microsoft-authentication-library-for-python\/issues\">Python<\/a>) and <a href=\"https:\/\/stackoverflow.com\/questions\/tagged\/msal\">StackOverflow<\/a>.\u00a0<\/p>\n<p>Thanks for\u00a0supporting the Microsoft identity platform and we\u2019re excited to see what you build with our MSAL libraries!\u00a0<\/p>\n<p>&#8211;\u00a0The\u00a0Microsoft identity platform\u00a0team\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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\u2019re excited to announce that MSAL Java and MSAL Python are now generally available! MSAL enables applications to integrate with the Microsoft identity platform [&hellip;]<\/p>\n","protected":false},"author":69081,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,5,11],"tags":[22,79,135],"class_list":["post-3851","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-microsoft-identity-platform","category-office-add-ins","tag-azure-ad","tag-microsoft-authentication-libraries","tag-python"],"acf":[],"blog_post_summary":"<p>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\u2019re excited to announce that MSAL Java and MSAL Python are now generally available! MSAL enables applications to integrate with the Microsoft identity platform [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/3851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69081"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=3851"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/3851\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=3851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=3851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=3851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}