为什么Google OAuth2 redirect_uri_mismatch给出误报?

时间:2018-09-30 14:29:47

标签: ruby-on-rails nginx google-oauth2 puma

我在nginx后面运行着Rails应用程序,nginx启用了letencrypt证书,但是rails没有被加密。当我尝试通过Google OAuth2进行身份验证时,会得到:

400. That’s an error.

Error: redirect_uri_mismatch

The redirect URI in the request, https://example.com/auth/google_oauth2/callback does not match the ones authorized for the OAuth client.

To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/something

enter image description here

然后,当我访问链接以检查我的凭据时,我得到了:

Failed to load

Tracking Number: somenumber

enter image description here

但是,当我进入开发者控制台时,两个URL出现在404错误中的URL和我在授权重定向URI 中指定的URL都是相同的。

0 个答案:

没有答案