Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 641
Hongbo Miao Avatar asked Aug 05 '17 21:08

Hongbo Miao


People also ask

What is the difference between Adal and Msal?

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.

What is Adal used for?

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.

What is Msal JS?

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.

Is Adal deprecated?

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.


1 Answers

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.

like image 133
bithero Avatar answered Sep 18 '22 08:09

bithero