用于Azure AD B2C和Xamarin的MSAL或ADAL库 [英] MSAL or ADAL library for use with Azure AD B2C and Xamarin

查看:121
本文介绍了用于Azure AD B2C和Xamarin的MSAL或ADAL库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

截至2016年10月,Microsoft身份验证库(MSAL-NuGet软件包: Microsoft.Identity.Client )仍然是Xamarin(iOS/Android)和Azure AD B2C服务?该库(MSAL)仅以Alpha形式提供,并且似乎没有处于积极维护或开发的状态(自4月以来).

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? 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).

种种迹象表明,Active Directory身份验证库(ADAL-NuGet软件包: Microsoft.IdentityModel.Clients.ActiveDirectory )旨在作为Microsoft的单一身份验证库到规则-全部",并且支持Xamarin;它也正在积极维护中,并且不处于"alpha"或"beta"状态.

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; it is also being actively maintained and is not in "alpha" or "beta" status.

了解Microsoft过去曾指示Azure AD B2C开发人员使用MSAL库,是否可以改为使用ADAL库在Xamarin应用程序中对Azure AD B2C用户进行身份验证?有人可以指向我提供博客或示例代码,以演示如何执行此操作吗?

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? Are there blogs or sample code that someone could point me to, that would demonstrate how to do this?

推荐答案

这是不可能的. 如您所说,ADAL通常可用并受支持-但是,它仅设计用于Azure Azure经典"(例如-NOT B2C)和ADFS"3.0"以后的版本.存在重要的协议和功能差异,使ADAL OM和协议功能与B2C不兼容. MSAL代表了新一代的Microsoft身份验证库,旨在与Azure AD v2终结点,Microsoft帐户(MSA)和Azure AD B2C一起使用.它仍处于预览状态,但是正在积极开发中-如果您在 https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/,您将看到正在处理的各个分支.如果您想尝试B2C和Xamarin,那就是要使用的库.目前,我们无法共享预计何时可用的ETA. 谢谢 V.

It is not possible. As you say, ADAL is generally available and supported - however, it is designed to only work against Azure AD "classic" (e.g. - NOT B2C) and ADFS "3.0" onward. There are important protocol and feature differences that make the ADAL OM and protocol capabilities incompatible with 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. 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. If you want to experiment with B2C and Xamarin, that's the library to use. At this time we cannot share an ETA for when it will be generally available. thanks V.

这篇关于用于Azure AD B2C和Xamarin的MSAL或ADAL库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆