What is the difference between ADAL.js and MSAL.js

2020-07-03 09:01发布

问题:

I am trying to handle authentication for my app which uses Microsoft Graph.

What is the difference between these two libraries?

  • Active Directory Authentication Library for JavaScript (ADAL.js)

  • Microsoft Authentication Library for JavaScript (MSAL.js)

Is ADAL.js just an Angular 1 library of MSAL.js?

回答1:

MSAL.js works with the AzureAD V2 endpoint, whereas ADAL.js works with the AzureAD V1 endpoint. The V1 endpoint supports work accounts, but not personal accounts. The V2.0 endpoint is the unification of Microsoft personal accounts and work accounts into a single authentication system. Finally, with msal.js you can also get authentications for Azure AD B2C.