快速入门:构建集成 Microsoft 登录的 Xamarin 应用Quickstart: Build a Xamarin app that integrates Microsoft sign-in

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.

对于新的 Xamarin 应用程序,我们建议你使用 Microsoft 标识平台 (v2.0) 和 MSAL 来获取令牌并访问受保护的 Web API:使用 MSAL 将 Microsoft 标识和 Microsoft Graph 集成到 Xamarin Forms 应用程序中(没有可选步骤)。For new Xamarin applications applications, we recommend you use Microsoft identity platform (v2.0) and MSAL to acquire tokens and access secured web APIs: Integrate Microsoft identity and the Microsoft Graph into a Xamarin forms app using MSAL (without the optional steps).