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?
ADAL.NET used AuthenticationContext as the representation of your connection to the Security Token Service (STS) or authorization server, through an Authority. MSAL.NET is designed around client applications.
ADAL is the acronym for the 'Active Directory Authentication Library', and, along with OAuth 2.0, it is an underpinning of Modern Authentication. This code library is designed to make secured resources in your directory available to client applications (like Skype for Business) via security tokens.
The MSAL library for JavaScript enables client-side JavaScript web applications, running in a web browser, to authenticate users using Azure AD work and school accounts (AAD), Microsoft personal accounts (MSA) and social identity providers like Facebook, Google, LinkedIn, Microsoft accounts, etc.
All Microsoft support and development for ADAL, including security fixes, ends in December, 2022. There are no ADAL feature releases or new platform version releases planned prior to December, 2022. No new features have been added to ADAL since June 30, 2020.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With