ADAL.js 和 MSAL.js 有什么区别?有什么区别、ADAL、js、MSAL

2023-09-06 17:30:28 作者:爱情不过烈酒一壶

我正在尝试为使用 Microsoft Graph 的应用处理身份验证.

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

这两个库有什么区别?

适用于 JavaScript (ADAL.js) 的 Active Directory 身份验证库

Microsoft Authentication Library for JavaScript (MSAL.js)

ADAL.js 只是 MSAL.js 的 Angular 1 库吗?

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

推荐答案

MSAL.js 与 AzureAD V2 端点一起使用,而 ADAL.js 与 AzureAD V1 端点一起使用.V1 端点支持工作帐户,但不支持个人帐户.V2.0 端点是将 Microsoft 个人帐户和工作帐户统一到一个身份验证系统中.最后,使用 msal.js,您还可以获得 Azure AD B2C 的身份验证.

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.