是否可以通过 ACS 2.0 身份提供程序从 Windows Live ID 获得任何其他声明? [英] Are any other claims available from Windows Live ID via the ACS 2.0 identity provider?

查看:30
本文介绍了是否可以通过 ACS 2.0 身份提供程序从 Windows Live ID 获得任何其他声明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,目前 ACS 2.0 中的默认 Windows Live ID 身份提供者仅提供两个声明:nameidentifier(与用户和您的应用程序相关联的 base64 唯一 ID,但对描述某人无用)和 identityprovider 声明,它允许您知道您正在与 LiveID 交谈.我想知道是否可以为 Window Live ID 配置一个替代身份提供程序,它可以通过附加声明提供姓名和其他 Live ID 配置文件信息.

I understand that currently the default Windows Live ID identity provider in ACS 2.0, only provides two claims the nameidentifier (a base64 unique id associated with the user and your application, but useless for describing someone) and the identityprovider claim which lets you know that your talking with LiveID. I was wondering is it possible to configure an alternative identity provider for Window Live ID that could provide Name and other Live ID profile information via additional claims.

谢谢,-帕特里克

推荐答案

除了 nameidentifieridentityprovider 声明之外,你不能得到任何东西使用 Window 的 Live Identity Provider.http://msdn.microsoft.com/en-us/library/gg185944.aspx

You can't get anything but the nameidentifier and identityprovider claims using the Window's Live Identity Provider. http://msdn.microsoft.com/en-us/library/gg185944.aspx

此链接详细列出了 Azure ACS 2.0 可用的其他提供程序.http://msdn.microsoft.com/en-us/library/gg185971.aspx

The other providers available to Azure ACS 2.0 are all listed in detail from this link. http://msdn.microsoft.com/en-us/library/gg185971.aspx

仅供参考 - Google &雅虎作为 IP 提供额外但可选的声明 emailaddress &<代码>名称.因此,您还可以检索例如 John Doe &john.doe@gmail.com.

FYI - Google & Yahoo as IP's provide additional but optional claims emailaddress & name. So you could also retrieve as an example, John Doe & john.doe@gmail.com.

请注意,使用这两个可选声明将提示用户在首次登录时他们将接触到您的服务.此时用户可以取消操作.我建议您只获取您真正需要的声明,因为它可能会吓跑潜在用户.

Note, that using these two optional claims will prompt the user they will be exposed to your services when logging in for the first time. At which time the user can cancel the operation. I recommend you only get the claims you really need as it may scare off potential users.

这篇关于是否可以通过 ACS 2.0 身份提供程序从 Windows Live ID 获得任何其他声明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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