zquestz / omniauth-google-oauth2

Oauth2 strategy for Google
1.47k stars 414 forks source link

Can't override the redirect_uri #456

Closed haitamhel closed 6 months ago

haitamhel commented 6 months ago

this is my config/initializers/omniauth.rb :

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :google_oauth2, ENV['GOOGLE_CLIENT_ID'], ENV['GOOGLE_CLIENT_SECRET'],
  redirect_uri: 'http://localhost:8080/platform-integration/google',
  {
    prompt: 'select_account',
    image_aspect_ratio: 'square',
    image_size: 50,
  }
end