OpenID 委托

发布于 2024-07-11 22:02:45 字数 1188 浏览 5 评论 0原文

我已经尝试了在我的网站上使用 openID 委托的所有可能选项,但没有一个方法对我有用。

  1. 我在 HTML 文件的 head 部分有“link rel”标签。
  2. 我在 HTML 文件的 head 部分有 xrds 位置元标记。
  3. 我正在为 X-XRDS-Location 和 X-YADIS-Location 设置 HTTP 标头。
  4. 我已将重定向规则放入 .htaccess 文件中,以便在使用“Accept”标头请求该类型时发送 XRDF 文件。

我不确定出了什么问题,但没有一个服务能够成功找到 openID 端点。 已验证此处此处

我正在尝试使用 http://vinuth.com/ 作为 openID URL,并使用上述所有方法访问该页面。 我已经验证了这些 head 标签中使用的所有 URL 的正确性。 我还尝试过选择性地仅使用其中一种或两种方法的排列。

我放在标题下的标签:

<link rel="openid.server" href="https://pip.verisignlabs.com/server/" />
<link rel="openid.delegate" href="http://gubbi.pip.verisignlabs.com/" />
<meta http-equiv="X-XRDS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadis" />
<meta http-equiv="X-YADIS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadis" />

在沮丧的情况下寻求帮助。 :)

I have tried all the possible options to use openID delegation on my site, but none of the methods are working for me.

  1. I'm having the "link rel" tags in the head section of the HTML file.
  2. I'm having the xrds location meta tags in the head section of the HTML file.
  3. I'm setting HTTP Headers for X-XRDS-Location and X-YADIS-Location.
  4. I've put redirection rules in the .htaccess file to send a XRDF file in case that type is requested using "Accept" header.

I'm not sure whats wrong, but none of the services can find the openID endpoint successfully. Verified here and here.

I'm trying to use http://vinuth.com/ as the openID URL and access to that page uses all the methods described above. I've verified the correctness of all the URLs used in those head tags. I've also tried permutations of using only one or two of these methods selectively.

tags I've put under head:

<link rel="openid.server" href="https://pip.verisignlabs.com/server/" />
<link rel="openid.delegate" href="http://gubbi.pip.verisignlabs.com/" />
<meta http-equiv="X-XRDS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadis" />
<meta http-equiv="X-YADIS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadis" />

Asking for help in a state of frustration overflow. :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

淡淡绿茶香 2024-07-18 22:02:45

试试这个,它应该可以工作;)

<link rel="openid.server" href="http://pip.verisignlabs.com/server" />
<link rel="openid.delegate" href="http://gubbi.pip.verisignlabs.com" />
<link rel="openid2.provider" href="http://pip.verisignlabs.com/server" />
<link rel="openid2.local_id" href="http://gubbi.pip.verisignlabs.com" />
<meta http-equiv="X-XRDS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadisxrds" />
<meta http-equiv="X-YADIS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadisxrds" />

no need to do anything fancy ;)

try this, it should work ;)

<link rel="openid.server" href="http://pip.verisignlabs.com/server" />
<link rel="openid.delegate" href="http://gubbi.pip.verisignlabs.com" />
<link rel="openid2.provider" href="http://pip.verisignlabs.com/server" />
<link rel="openid2.local_id" href="http://gubbi.pip.verisignlabs.com" />
<meta http-equiv="X-XRDS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadisxrds" />
<meta http-equiv="X-YADIS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadisxrds" />

no need to do anything fancy ;)

一曲爱恨情仇 2024-07-18 22:02:45

来自文档

<link rel="openid.server" href="http://pip.verisignlabs.com/server/" />
<link rel="openid.delegate" href="http://gubbi.pip.verisignlabs.com/" />
<link rel="openid2.provider" href="http://pip.verisignlabs.com/server/" />
<link rel="openid2.local_id" href="http://gubbi.pip.verisignlabs.com/" />
<meta http-equiv="X-XRDS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadisxrds" />
<meta http-equiv="X-YADIS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadisxrds" />

From the documentation:

<link rel="openid.server" href="http://pip.verisignlabs.com/server/" />
<link rel="openid.delegate" href="http://gubbi.pip.verisignlabs.com/" />
<link rel="openid2.provider" href="http://pip.verisignlabs.com/server/" />
<link rel="openid2.local_id" href="http://gubbi.pip.verisignlabs.com/" />
<meta http-equiv="X-XRDS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadisxrds" />
<meta http-equiv="X-YADIS-Location" content="http://pip.verisignlabs.com/user/gubbi/yadisxrds" />
年华零落成诗 2024-07-18 22:02:45

尝试将 openid.server 上的协议更改为 http 而不是 https,看看是否有效。 另外,我认为您需要设置与您用于 openid.server 的值相同,以涵盖所有基础。

Try changing the protocol on the openid.server to http instead of https and see if that works. Also, I think you'll want to set <link rel="openid2.provider" href="..." /> to the same value you are using for openid.server, to cover all the bases.

眼睛会笑 2024-07-18 22:02:45

这是一个很好的测试 RP:

http://test-id.org/OP/Sreg.aspx

失败后,单击“最近日志”以查看 RP 尝试执行的操作的详细信息。 它可能会帮助您找出自己做错了什么。

我建议您拿出所有 YADIS 和 XRDS 内容,并坚持使用简单的 HTML LINK 标记,直到正确为止。 它保留了未知数。

This is a good test RP:

http://test-id.org/OP/Sreg.aspx

After the failure, click "Recent Logs" to see what the verbose details are of what the RP was trying to do. It might help you figure out what you're doing wrong.

I suggest you pull out all your YADIS and XRDS stuff and stick to the simple HTML LINK tags until you get it right. It keeps the unknowns down.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文