如何使用正确的Google OpenID网址登录我的网站? [英] How to use the correct Google OpenID url to login to my site?

查看:141
本文介绍了如何使用正确的Google OpenID网址登录我的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将OpenID作为我的下一个Web应用程序的首选选项此处

I am trying to implement OpenID as one preferred option to my next web app here

该代码取自

The code is taken from this tutorial and works if I use my openID from myopenid.com

但是,据我所知,我相信大多数人都愿意将日常电子邮件地址用作openID,据我所知,Google,Yahoo和其他一些大型公司已经在其系统中做到了这一点.

However, I believe most people would just love to use their everyday email address as their openID, as far as I know, Google, Yahoo, and some other big players have already done this in their systems.

我的问题是:如何找到正确的"URL"以在登录表单中输入? 我将我的Google OpenID帐户用于StackOverflow,并且工作正常.我尝试复制我的 这样的openID:

My question is: how could I find the correct "url" to enter in the form to login? I used my Google OpenID account for StackOverflow and it works just fine. I try to copy my openID like this:

www.google.com/accounts/o8/id?id=aitoawllano10bzdzp3ht0diffry0qt6_j2ls-m

并将其直接粘贴到我的表单中,但是不起作用.

And paste it directly into my form, but it doesn't work.

我也尝试删除url参数,但这也不会删除.

I also tried to remove the url parameter, but that won't do, either.

非常感谢您提供任何提示和建议.

Thanks a lot in advance for any tips and suggestions.

推荐答案

基本上,您不允许使用为一个站点生成的令牌对另一个站点进行身份验证.这是一项安全功能. (好的,被允许看到OpenID身份的站点可以使另一个站点接受有关您的身份的断言,但这是带有OpenID的带外消息.)

Basically, you're not allowed to use a token produced for one site to authenticate to another. This is a security feature. (OK, the site which is allowed to see the OpenID identity could make an assertion accepted by the other site about your identity, but that's out-of-band w.r.t. OpenID.)

您应该使用的URL就是这样:

The URL you should use is just this:

https://www.google.com/accounts/o8/id

这篇关于如何使用正确的Google OpenID网址登录我的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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