{"id":6549,"date":"2021-07-14T10:51:15","date_gmt":"2021-07-14T17:51:15","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=6549"},"modified":"2021-11-17T12:28:48","modified_gmt":"2021-11-17T20:28:48","slug":"msal-for-angular-v2-is-now-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/msal-for-angular-v2-is-now-available\/","title":{"rendered":"MSAL for Angular v2 is now available"},"content":{"rendered":"<p>We\u2019re excited to announce the release of a new Microsoft Authentication Library (MSAL) for Angular. We\u2019re calling it MSAL Angular v2. This library improves on the existing MSAL Angular v1 library bringing exciting new features. MSAL Angular v2 uses the OAuth 2.0 Authorization Code Flow with PKCE (Proof Key for Code Exchange). This will provide a better experience on browsers where third party cookies are disabled and provides additional security. To learn more about MSAL authentication flows, follow this link: <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/msal-authentication-flows\">MSAL authentication flows &#8211; Microsoft identity platform | Microsoft Docs<\/a><\/p>\n<p>With MSAL Angular v2 you can write applications to authenticate users using work, school and personal Microsoft accounts, and accounts on social identity providers like Facebook, Google, LinkedIn, and others with our Azure AD B2C product. It also enables your app to access data and intelligence in Microsoft 365 through Microsoft Graph.<\/p>\n<p>You can find the MSAL Angular v2 package at <a href=\"https:\/\/www.npmjs.com\/package\/@azure\/msal-angular\">@azure\/msal-angular &#8211; npm (npmjs.com)<\/a>. To learn more about taking advantage of the new MSAL Angular v2 library in your application, follow the <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/quickstart-v2-javascript-auth-code-angular\">quickstart<\/a> or the <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/tutorial-v2-angular-auth-code\">tutorial<\/a>.<\/p>\n<h4>Migrate from MSAL Angular to MSAL Angular v2 to take advantage of the auth code flow<\/h4>\n<p>Moving to the MSAL v2 libraries ensures your application can use the latest features of our Azure products and stays up to date with the latest releases from the Angular community. For example, the MSAL Angular v2 library works with the Microsoft identity platform\u2019s OpenID Connect-certified Azure AD v2.0 endpoint and the social identity solution from Microsoft Azure AD B2C. To migrate your application to MSAL Angular v2, follow <a href=\"https:\/\/github.com\/AzureAD\/microsoft-authentication-library-for-js\/blob\/dev\/lib\/msal-angular\/docs\/v2-docs\/v1-v2-upgrade-guide.md\">the migration guide<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>-Microsoft identity platform team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This library improves on the existing MSAL Angular v1 library bringing exciting new features to provide a better experience. <\/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],"tags":[93],"class_list":["post-6549","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-microsoft-identity-platform","tag-msal"],"acf":[],"blog_post_summary":"<p>This library improves on the existing MSAL Angular v1 library bringing exciting new features to provide a better experience. <\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/6549","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=6549"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/6549\/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=6549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=6549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=6549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}