Авторизация 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
Что означает это сообщение, и как я могу это исправить? Я использую драгоценный каменьomniauth-google-oauth2.