Yahoo! 的位置标题Rails 应用程序中的 OpenID

发布于 2024-09-24 04:24:00 字数 410 浏览 0 评论 0原文

我试图在使用 Yahoo! 时消除“未确认”警告。作为我的 Rails 2.3.5 应用程序的 OpenID 提供者。雅虎! OpenID FAQ[1] 建议“您的站点使用 X-XRDS-Location HTTP 标头链接到其 XRDS 文档”。这是否意味着我的 Rails 应用程序的每个响应都应包含此标头?人们会如何去做这件事呢?

有没有人成功获得 Yahoo! “未确认”警告会在 Rails 应用程序中消失吗?

-- 谢谢! 布莱恩

[1]:http://developer.yahoo.com/openid/faq.html 雅虎! OpenID 常见问题解答

I'm trying to get the "not confirmed" warning to go away when using Yahoo! as an OpenID provider for my Rails 2.3.5 application. The Yahoo! OpenID FAQ[1] recommends "that your site links to its XRDS document using the X-XRDS-Location HTTP header". Does this mean every single response from my Rails app should include this header? How would one go about doing this?

Has anyone had success getting the Yahoo! "not confirmed" warning to go away in a Rails application?

--
Thanks!
Bryan

[1]: http://developer.yahoo.com/openid/faq.html Yahoo! OpenID FAQ

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

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

发布评论

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

评论(1

掌心的温暖 2024-10-01 04:24:00

不,只有来自响应“/”的控制器方法的响应才必须包含标头。您可以使用以下方式设置此标头:

response.headers['X-XRDS-Location'] = "http://#{request.host}/xrds"

No, only the response from the controller method which responds to '/' has to include the header. You can set this header with:

response.headers['X-XRDS-Location'] = "http://#{request.host}/xrds"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文