使用 Google App Engine 或 ZoneEdit 在裸域上设置 OpenID 委派

发布于 2024-08-11 16:06:36 字数 1380 浏览 3 评论 0原文

背景

我的域曾经拥有一个标准 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 技术交流群。

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

发布评论

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

评论(2

久夏青 2024-08-18 16:06:36

身份发现规范明确要求消费者遵循所有重定向。

来自 7.2 节。 OpenID 2.0 规范的规范化:

URL 标识符必须在检索其内容时通过以下重定向进一步规范化,并最终将 [RFC3986] [...] 第 6 节中的规则应用于最终目标 URL。依赖方必须将此最终 URL 记录为声明标识符,并在请求身份验证(请求身份验证)时使用。

您的设置预计可以正常工作。

The specification on identity discovery explicitly calls for the consumer to follow all redirects.

From section 7.2. Normalization of OpenID 2.0 specification:

URL Identifiers MUST then be further normalized by both following redirects when retrieving their content and finally applying the rules in Section 6 of [RFC3986] [...] to the final destination URL. This final URL MUST be noted by the Relying Party as the Claimed Identifier and be used when requesting authentication (Requesting Authentication).

Your setup is expected to work fine.

染火枫林 2024-08-18 16:06:36

您无法在“裸”域上托管 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.

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