更改域错误 - 身份验证的OpenID请求包含未注册的域名 [英] Changed domain error - OpenId auth request contains an unregistered domain

查看:203
本文介绍了更改域错误 - 身份验证的OpenID请求包含未注册的域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将在我的主域example.com一个项目,然后把它移动到一个子sub.example.com

I set up a project on my main domain example.com and then moved it to a subdomain sub.example.com

现在,当我尝试使用相同的(默认的ASP.NET MVC或在我的话语论坛)项目,OpenID和点击谷歌按钮,我的谷歌帐户登录它抛出下面的错误 -

Now when I try to use the same (default ASP.NET MVC or on my Discourse forum) project with OpenId and click on the Google button to log in with my Google account it throws the following error -


  1. 这是一个错误。

  1. That’s an error.

的OpenID身份验证请求包含未注册的域名:http://sub.example.com

我曾尝试谷歌搜索该消息,但显然我是第一个四人之一,看到它。这里任何想法?

I have tried Googling that message but apparently I am one of the first four people to see it. Any ideas here?

推荐答案

根据此页
谷歌在2014年5月完成注册,新的OpenID 2.0的客户端,将被关闭在2015年4月的2.0 OpenID的服务。

为什么一些主机工作,有的没有的原因是,虽然谷歌没有添加新的主机,你仍然可以使用已注册的人。

The reason why some hosts work and some don't is that although Google isn't adding new hosts, you can still use the ones that are already registered.

更新:
有人曾问对如何解决这个问题,否则如何进行一个简单的解释。

UPDATE : Some people have asked for a simple explanation for how to fix this, or otherwise how to proceed.

基本上,你现在有两个选择。

Basically, you now have 2 options.

使用OAuth 2.0 (而不是OpenID的协议和旧版本的OAuth)

Use OAuth 2.0 (instead of openID protocols and older versions of OAuth)

使用Google+帐户登录(其中谷歌试图走向推送你)

Use Google+ login (which Google tried to "push" you towards)

有关详细信息,请检查迁移指南:

For more details check the migration guide :

<一个href=\"https://developers.google.com/+/api/auth-migration#userinfo\">https://developers.google.com/+/api/auth-migration#userinfo

这篇关于更改域错误 - 身份验证的OpenID请求包含未注册的域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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