快速入门:生成一个与 Azure AD 集成以进行身份验证和授权的 .NET Web APIQuickstart: Build a .NET web API that integrates with Azure AD for authentication and authorization

Microsoft 标识平台由 Azure Active Directory (Azure AD) 开发人员平台演变而来。Microsoft identity platform is an evolution of the Azure Active Directory (Azure AD) developer platform. 开发人员可以通过它来生成应用程序,从而可以采用所有 Microsoft 标识登录,以及获取令牌来调用 Microsoft Graph 等 Microsoft API 或开发人员生成的 API。It allows developers to build applications that sign in all Microsoft identities and get tokens to call Microsoft APIs such as Microsoft Graph or APIs that developers have built.

借助 Microsoft 身份验证库 (MSAL),开发人员能够从 Microsoft 标识平台终结点获取令牌,以访问受保护的 Web API。Microsoft Authentication Library (MSAL) enables developers to acquire tokens from the Microsoft identity platform endpoint in order to access secured Web APIs. Active Directory 身份验证库 (ADAL) 与适用于开发人员的 Azure AD (v1.0) 终结点集成,其中 MSAL 与 Microsoft 标识平台 (v2.0) 终结点集成。Active Directory Authentication Library (ADAL) integrates with the Azure AD for developers (v1.0) endpoint, where MSAL integrates with the Microsoft identity platform (v2.0) endpoint.

对于新的 Web API,我们建议你使用 Microsoft 标识平台 (v2.0) 和 MSAL 来获取令牌并访问受保护的 Web API:快速入门:向 ASP.NET Web 应用添加 Microsoft 登录功能For new web APIs, we recommend you use Microsoft identity platform (v2.0) and MSAL to acquire tokens and access secured web APIs: Quickstart: Add sign-in with Microsoft to an ASP.NET web app