简体   繁体   English

用于Azure AD B2C和Xamarin的MSAL或ADAL库

[英]MSAL or ADAL library for use with Azure AD B2C and Xamarin

As of October 2016, is it still the case that the Microsoft Authentication Library (MSAL - NuGet package: Microsoft.Identity.Client ) is the correct/only library to use with Xamarin (iOS/Android) and the Azure AD B2C service? 截至2016年10月,Microsoft身份验证库(MSAL-NuGet软件包: Microsoft.Identity.Client )是否仍然是与Xamarin(iOS / Android)和Azure AD B2C服务一起使用的正确/唯一库? This library (MSAL) is only available as an alpha and does not appear to be in a state of being actively maintained or developed (since April). 该库(MSAL)仅以Alpha形式提供,并且似乎没有处于积极维护或开发的状态(自4月以来)。

There are indications that the Active Directory Authentication Library (ADAL - NuGet package: Microsoft.IdentityModel.Clients.ActiveDirectory ) is intended as Microsoft's "one-Azure-authentication-library-to-rule-them-all", and it supports Xamarin; 有迹象表明,Active Directory身份验证库(ADAL-NuGet包: Microsoft.IdentityModel.Clients.ActiveDirectory )旨在作为Microsoft的“一个-Azure身份验证库-所有规则”,并且支持Xamarin; it is also being actively maintained and is not in "alpha" or "beta" status. 它也正在积极维护中,并且不处于“ alpha”或“ beta”状态。

Understanding that Microsoft has in the past pointed Azure AD B2C developers towards using the MSAL library, is it possible to authenticate Azure AD B2C users in a Xamarin app using the ADAL library instead? 了解Microsoft过去曾指示Azure AD B2C开发人员使用MSAL库,是否可以改为使用ADAL库在Xamarin应用程序中对Azure AD B2C用户进行身份验证? Are there blogs or sample code that someone could point me to, that would demonstrate how to do this? 有人可以指向我提供博客或示例代码,以演示如何执行此操作吗?

It is not possible. 这不可能。 As you say, ADAL is generally available and supported - however, it is designed to only work against Azure AD "classic" (eg - NOT B2C) and ADFS "3.0" onward. 如您所说,ADAL通常可用并受支持-但是,它仅设计用于Azure Azure“经典”(例如-NOT B2C)和ADFS“ 3.0”以后的版本。 There are important protocol and feature differences that make the ADAL OM and protocol capabilities incompatible with B2C. 存在重要的协议和功能差异,使ADAL OM和协议功能与B2C不兼容。 MSAL represents the new generation of Microsoft's authentication libraries, designed to work with Azure AD v2 endpoints, Microsoft Accounts (MSA) and Azure AD B2C. MSAL代表了新一代的Microsoft身份验证库,旨在与Azure AD v2终结点,Microsoft帐户(MSA)和Azure AD B2C一起使用。 It is still in preview, but it is under active development - if you observe its repo at https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/ , you'll see various branches being worked on. 它仍然处于预览阶段,但是正在积极开发中-如果您在https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/上看到它的存储库,将会看到各个分支都在工作。 If you want to experiment with B2C and Xamarin, that's the library to use. 如果您想尝试B2C和Xamarin,那就是要使用的库。 At this time we cannot share an ETA for when it will be generally available. 目前,我们无法共享预计何时可用的ETA。 thanks V. 谢谢V.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM