ADAL 和 MSAL 混淆

ADAL and MSAL confusion

我的参考文献

据此,

Starting June 30th, 2020 we will no longer add any new features to Azure Active Directory Authentication Library (ADAL) and Azure AD Graph. We will continue to provide technical support and security updates but we will no longer provide feature updates. Applications will need to be upgraded to Microsoft Authentication Library (MSAL) and Microsoft Graph. Learn more

还有这个,

Starting June 30th, 2022, we will end support for ADAL and Azure AD Graph and will no longer provide technical support or security updates. Apps using Azure AD Graph after this time will no longer receive responses from the Azure AD Graph endpoint. Apps using ADAL on existing OS versions will continue to work after this time but will not get any technical support or security updates.

this link,

using Microsoft.IdentityModel.Clients.ActiveDirectory; // ADAL
using Microsoft.Identity.Client; // MSAL

ADAL 应替换为 MSAL。但是,我的项目没有引用上述任何一个库。

这些是我在项目中的参考资料。

Microsoft.IdentityModel.JsonWebTokens
Microsoft.IdentityModel.Protocols.OpenIdConnect
Microsoft.IdentityModel.Tokens
Microsoft.Owin
Microsoft.Owin.Security
Microsoft.Owin.Security.Cookies
Microsoft.Owin.Security.OpenIdConnect
Owin

问题

我对这个主题了解得越多,就越感到困惑,因为前一分钟我还以为 ADAL 只是授权而不是身份验证,下一分钟我就看到它被称为 ADAL 身份验证。我只想知道是否需要更新我的身份验证码才能继续工作。

由于您没有使用任何一个库(Microsoft.IdentityModel.Clients.ActiveDirectoryMicrosoft.Identity.Client)并且您只使用 Azure AD 进行身份验证,所以我认为此更改不会影响您的项目。

关于为什么他们引用 MSALMicrosoft Graph 而不是 ADALAzure AD Graph。其实两者大同小异,变化不大。你可以参考这个document来了解它们之间的区别