Google OpenID:您请求的页面无效 [英] Google OpenID: the page you requested is invalid

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

问题描述

我正在编写一个依赖方,并使用Google提供程序. Yadis将我引至 https://www.google.com/accounts/o8/ud,我创建一个关联,并将用户的浏览器重定向到该URL(HTTP 307),并填写以下查询参数:

I'm writing a Relying Party, and use the Google provider. Yadis leads me to https://www.google.com/accounts/o8/ud, I create an association, and redirect the user's browser to that URL (HTTP 307), and fill in the following query parameters:

  • openid.ns:http://specs.openid.net/auth/2.0
  • openid.mode:checkid_setup
  • openid.assoc_handle:value_received_from_association,
  • openid.return_to:http://my_host:and_port/?returned=1
  • openid.ns: http://specs.openid.net/auth/2.0
  • openid.mode: checkid_setup
  • openid.assoc_handle: value_received_from_association,
  • openid.return_to: http://my_host:and_port/?returned=1

AFAICT,我已经填写了我应该提供的所有内容,但是我的用户的浏览器从google获取了一个页面,显示您请求的页面无效".用什么方式?

AFAICT, I have filled out everything I'm supposed to provide, yet my user's browser gets a page from google which says "The page you requested is invalid". In what way?

推荐答案

该错误实际上是由于不包含必须设置为"http://specs.openid.net/auth/2.0/identifier_select"openid.claimed_idopenid.identity参数而触发的.设置了这些值后,我又得到了另一个错误,也可以通过填写与openid.return_to相同的值的openid.realm来解决.

The error was literally triggered by not including the openid.claimed_id and openid.identity parameters, which must be set to "http://specs.openid.net/auth/2.0/identifier_select". With these set, I get another error, which can be resolved by also filling out openid.realm, with the same value as openid.return_to.

即使我也实现了RP发现,但Google似乎并未使用它.

Even though I also implemented RP discovery, Google does not appear to use it.

这篇关于Google OpenID:您请求的页面无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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