We’re excited to announce the release of a new Microsoft Authentication Library (MSAL) for Angular. We’re 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: MSAL authentication flows – Microsoft identity platform | Microsoft Docs
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.
You can find the MSAL Angular v2 package at @azure/msal-angular – npm (npmjs.com). To learn more about taking advantage of the new MSAL Angular v2 library in your application, follow the quickstart or the tutorial.
Migrate from MSAL Angular to MSAL Angular v2 to take advantage of the auth code flow
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’s 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 the migration guide.
-Microsoft identity platform team