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

查看:27
本文介绍了用于 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 的one-Azure-authentication-library-to-rule-他们全部",并且它支持 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 AD经典"(例如 - 非 B2C)和 ADFS3.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.谢谢五、

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天全站免登陆