相关疑难解决方法(0)

Google OAuth 2授权 - 错误:redirect_uri_mismatch

在网站https://code.google.com/apis/console上我已经注册了我的应用程序,为我的应用设置了生成的客户端ID:客户端密钥,并尝试使用Google登录.不幸的是,我收到了错误消息:

Error: redirect_uri_mismatch
The redirect URI in the request: http://127.0.0.1:3000/auth/google_oauth2/callback did not match a registered redirect URI

scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
response_type=code
redirect_uri=http://127.0.0.1:3000/auth/google_oauth2/callback
access_type=offline
approval_prompt=force
client_id=generated_id
Run Code Online (Sandbox Code Playgroud)

这条消息是什么意思,我该如何解决?我使用gem omn​​iauth-google-oauth2.

authentication oauth-2.0 google-signin

362
推荐指数
21
解决办法
48万
查看次数

标签 统计

authentication ×1

google-signin ×1

oauth-2.0 ×1