是我所需要的"身份&网址;?QUOT - 的OpenID [英] Is all I need the "identity url"? - OpenID

查看:163
本文介绍了是我所需要的"身份&网址;?QUOT - 的OpenID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道,如果我需要的是为了一个OpenID帐户理论上附加到用户帐户的身份URL。

I'm just wondering if all I need is the identity url in order to to theoretically attach an OpenID account to a user's account.

我有一个类似如下的URL身份:<一href=\"https://www.google.com/accounts/o8/id?id=YGnyuGHMUmhUI98nuhUMhu98nuN\">https://www.google.com/accounts/o8/id?id=YGnyuGHMUmhUI98nuhUMhu98nuN.

I have identity urls that look like the following: https://www.google.com/accounts/o8/id?id=YGnyuGHMUmhUI98nuhUMhu98nuN.

时的OpenID 1.0和2.0之间的有什么不同?

Is this different between OpenID 1.0 and 2.0?

以防万一有人问:我使用的Django + Django的OpenID的消费者

Just in case someone asks: I'm using Django + django-openid-consumer

谢谢你们=)

推荐答案

所有你需要绑定到用户帐户是身份标识,这是你所提供的示例URL被调用。的OpenID 1.x和2.0有它的URL所涉及,包括openid.identity和openid.claimed_id值了一把。它的非常的重要,你的,让你的财产读 openid.claimed_id ,而不是 openid.identity 存储与用户帐户的价值的时候。在谷歌为你呈现的情况下,相同的值被放入两个参数,所以很难确切知道无论你是从你使用的OpenID库得到正确的事情。

All you need to bind to a user account is the "Claimed Identifier" which is what the sample URL you provided is called. OpenID 1.x and 2.0 have a handful of URLs it deals with, including "openid.identity" and "openid.claimed_id" values. It is very important that you're reading from the property that gives you openid.claimed_id rather than openid.identity when storing the value with the user account. In the case of Google as you showed, the same value is put into both parameters so it's hard to know for sure whether you're getting the right thing from the OpenID library you're using.

只是回顾一下Django的提供给你,如果你看到任何看起来像claimed_id,使用它。

Just review what Django offers to you, and if you see anything that looks like claimed_id, use that.

这篇关于是我所需要的&QUOT;身份&网址;?QUOT - 的OpenID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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