OpenID的整合 [英] OpenID Integration

查看:202
本文介绍了OpenID的整合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道一个ASP.NET指导实施OpenID和什么样的信息可以通过OpenID提供商返回的?我知道你能获得的电子邮件地址,但如果有人与他们的谷歌的OpenID登录就可以得到自己的地址进行访问?

Does anyone know of an ASP.NET guide to implementing OpenID and what information can be returned by the OpenID provider? I understand you can get the email address but if someone logs in with their Google OpenID can you get access to their addresses?

推荐答案

是的,OpenID的提供商可以经常做提供索赔或属性有关的人登录,如果OpenID依赖方要求他们和用户同意这些数据被共享。

Yes, OpenID Providers can and often do offer 'claims' or 'attributes' about the people logging in if the OpenID relying party requests them and the user consents to these data being shared.

如果您使用 DotNetOpenAuth 为ASP.NET的OpenID库,它内置了支持的几种方式获得这些属性,但保持它的简单就在你身边时他们获得无论哪种方式的提供者提供了他们。如果你下载的库它自带如何做到这一点的样本。

If you use DotNetOpenAuth for your ASP.NET OpenID library, it has built-in support for several ways of getting these attributes but keeps it simple on your side to get at them regardless of which way the Provider offers them. If you download the library it comes with a sample of how to do this.

至于工作地址,并根据特定的领域(数据领域 - 不是Internet域)的一些其他属性很少有供应商为他们提供。你能做的最好的是得到完整地址,并询问用户是否这就是他们要使用的一个。

As far as work address, and some other attributes specific to certain domains (domains of data--not Internet domains) very few Providers offer them. The best you can do is get "full address" and ask the user if that's the one they want to use.

这篇关于OpenID的整合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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