16

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

What is the difference between these two libraries?

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

Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
  • There is also a documentation from Microsoft explaining more details: https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-compare-msal-js-and-adal-js – sschoof Sep 26 '19 at 06:28

1 Answers1

25

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.

bithero
  • 278
  • 3
  • 8
  • 2
    Nice explanation, [here's](https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-compare) a nice doc that compares the two endpoints as well. – Daniel Dobalian Aug 07 '17 at 18:08
  • In the future, please provide a source and quote the text that you did not write yourself. I've edited your answer accordingly. – user247702 Jan 31 '18 at 13:20