2013-07-01 72 views
3

我正在使用django-allauth,并试图通过Gmail帐户登录我的网站。我已经设置了APIDjango allauth使用Google帐户登录

谷歌API

Redirect URIs: https://tutor.herokuapp.com/accounts/google/login/callback 
JavaScript origins: https://tutor.herokuapp.com 

但是,当我点击谷歌链接登录我的错误

Error: redirect_uri_mismatch 
The redirect URI in the request: http://tutor.herokuapp.com/accounts/google/login/callback/ did not match a registered redirect URI 

我不要让她正是我已经错了因为Twitter和Facebook登录成功。帮助请求

回答

2

您已配置HTTPS重定向URI,而您的Django应用程序正在使用HTTP URI。 在Google API控制台上添加http://tutor.herokuapp.com/accounts/google/login/callback,或者在您的Django项目中使用HTTPS。

+0

傻了,错过了。你也可以指导我如何让雅虎登录工作。会很有帮助我已经创建了api ..我应该使用Openid还是有明确的yahoo配置 – flexxxit

+0

现在,Yahoo的OAuth1尚未得到支持,但Yahoo确实提供了支持的OpenID。 – pennersr

相关问题