URL は正しいようです (最終更新は昨日):
ファイルも:
omniauth.rb:
provider :google_oauth2, 'MY_CLIENT_ID.apps.googleusercontent.com', 'MY_CLIENT_SECRET',
:scope => 'https://mail.google.com/mail/feed/atom/'
Error: redirect_uri_mismatch
The redirect URI in the request: http://localhost:3000/auth/google_oauth2/callback did not match a registered redirect URI
header.html.erb
<li><%= link_to "Sign in with Google", "auth/google_oauth2" %></li>
ルート.rb:
match '/auth/:provider/callback', to: 'sessions#omniauth_create'
しかし、私はこれを得ています:
> Error: redirect_uri_mismatch The redirect URI in the request:
> http://localhost:3000/auth/google_oauth2/callback did not match a
> registered redirect URI
(Twitter と Facebook OmniAuth は完全に機能しています)
何が問題なのかわからない。これを修正するための使用方法はありますか?
編集
URI をhttp
...に変更しました。
しかし、それでも同じエラーが発生します。