JWT :: InvalidIssuerError: Invalid issuer. Expected accounts.google.com received at https://accounts.google.com

My website did not have a problem in the past for logging in using Google oauth. Suddenly I get the error above.

+4
source share
2 answers

You do not need to downgrade omniauth-google-oauth2. You can just add verify_iss: falseto yours config.omniauth.

config.omniauth :google_oauth2, 
                Rails.application.secrets.oauth_google_id, 
                Rails.application.secrets.oauth_google_secret, 
                verify_iss: false

For more information, check verify_issin https://github.com/zquestz/omniauth-google-oauth2#configuration

+7
source

RoR "omniauth-google-oauth2 - 0.5.1". (0.5.0), . , Google .

+1

Source: https://habr.com/ru/post/1682086/


All Articles