examples/omni_auth.rb in omniauth-google-oauth2-0.8.0 vs examples/omni_auth.rb in omniauth-google-oauth2-0.8.1
- old
+ new
@@ -8,9 +8,13 @@
# Default usage, this will give you offline access and a refresh token
# using default scopes 'email' and 'profile'
#
provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], scope: 'email,profile'
+ # Custom redirect_uri
+ #
+ # provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], scope: 'email,profile', redirect_uri: 'https://localhost:3000/redirect'
+
# Manual setup for offline access with a refresh token.
#
# provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], access_type: 'offline'
# Custom scope supporting youtube. If you are customizing scopes, remember