MSAL.js for API calls from AngularJS with Azure AD Authentication

2.2k Views Asked by At

Currently my application is using ADAL.js to get cached Azure AD token from angularJS application and call API methods of ASP.NET Core hosted.

Planning to migrate ADAL.JS to MSAL.js as support is stopped Ref

For AngularJS I am not able find reference documents for migration and also couldnt find any technical blogs for AngularJS. For other technologies its coming.

Help me on how to migrate ADAL.js to MSAL.js for Azure AD Authentication for AngularJS+ASP.NET Core application.

1

There are 1 best solutions below

3
On

When migrating ADAL.js to MSAL.js, you need to use @azure/msal-angular that is based on Microsoft identity platform v2.0.

There is an example using MSAL Angular and call a .NET Core web API.

For more details, see: