使用 Google App Engine 或 ZoneEdit 在裸域上设置 OpenID 委派
背景
我的域曾经拥有一个标准 Linux 托管帐户,其中包含 http://www .tjrobinson.net/ 和 http://tjrobinson.net/ 显示相同的内容。我使用 http://tjrobinson.net/ 作为我的 OpenID 登录名,结合下面的标记,让我可以使用ClaimID 是我的 OpenID 提供商,但具有更短、更便携和更好的标识符。
<link rel="openid.server" href="http://openid.claimid.com/server" />
<link rel="openid.delegate" href="http://openid.claimid.com/tjrobinson" />
问题
我现在已将网络托管切换到 Google App Engine。问题是我无法再使用 http://tjrobinson.net/ 作为我的 OpenID 登录 Google App Engine不支持“裸域”。
我使用 ZoneEdit 托管我的 DNS,尽管我可以设置 WebForward(301 重定向)到 http://www.tjrobinson.net/,它不适用于 OpenID 委托。
问题
有没有办法可以使用 Google App Engine 或 ZoneEdit(或其他免费服务)为裸域设置 OpenID 委派?
更新
奇怪,现在似乎可以正常工作 - 也许是 Stack Overflow 的问题,或者我的 DNS 更改尚未完全传播?看来 301 重定向确实有效,至少对于我尝试过的 Stack Overflow 和其他支持 OpenID 的网站来说是这样。
Background
I used to have a standard Linux hosting account for my domain with both http://www.tjrobinson.net/ and http://tjrobinson.net/ displaying the same content. I used http://tjrobinson.net/ as my OpenID login which, combined with the markup below, let me use ClaimID as my OpenID provider but with a shorter, more portable and nicer identifier.
<link rel="openid.server" href="http://openid.claimid.com/server" />
<link rel="openid.delegate" href="http://openid.claimid.com/tjrobinson" />
Problem
I've now switched web hosting over to Google App Engine. The problem is I can't use http://tjrobinson.net/ as my OpenID login anymore as Google App Engine doesn't support 'naked domains'.
I use ZoneEdit to host my DNS and although I can set up a WebForward (301 Redirect) to http://www.tjrobinson.net/, it doesn't work with the OpenID delegation.
Question
Is there a way I can set up OpenID delegation for the naked domain using either Google App Engine or ZoneEdit (or another free service)?
Update
Strange, it seems to be working now - perhaps it was a problem with Stack Overflow, or my DNS changes hadn't fully propagated? It looks like the 301 Redirect does work after all, at least with the Stack Overflow and other OpenID enabled sites I've tried.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
身份发现规范明确要求消费者遵循所有重定向。
来自 7.2 节。 OpenID 2.0 规范的规范化:
您的设置预计可以正常工作。
The specification on identity discovery explicitly calls for the consumer to follow all redirects.
From section 7.2. Normalization of OpenID 2.0 specification:
Your setup is expected to work fine.
您无法在“裸”域上托管 App Engine 网站。如果,正如您所说,发送 302 不起作用(我猜它实际上会在某种程度上取决于相关网站),您需要在裸域上找到一个托管简单静态文件的地方基本名称。
You can't host App Engine sites on 'naked' domains. If, as you say, sending a 302 doesn't work (I'm guessing it'll actually prove to be somewhat dependent on the site in question), you need to find somewhere to host a simple static file on the naked domain for the base name.