30
Google OAuth 2授权-错误:redirect_uri_mismatch
在网站https://code.google.com/apis/console上,我已经注册了我的应用程序,将生成的Client ID:和Client Secret设置到我的应用程序,并尝试使用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 此消息是什么意思,我该如何解决?我使用gem omniauth-google-oauth2。