我在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
然后,当我访问链接以检查我的凭据时,我得到了:
Failed to load
Tracking Number: somenumber
但是,当我进入开发者控制台时,两个URL出现在404错误中的URL和我在授权重定向URI 中指定的URL都是相同的。