Sha256: bab71fe8ea20b5cd60dc541c4c3d512c745c25a21f6bac61b035e5269ce9e8da

Contents?: true

Size: 607 Bytes

Versions: 10

Compression:

Stored size: 607 Bytes

Contents

Rails.application.config.middleware.use OmniAuth::Builder do
  # If you don't need a refresh token -- if you're only using Google for account creation/auth and don't need google services -- set the access_type to 'online'.
  # Also, set the approval prompt to an empty string, since otherwise it will be set to 'force', which makes users manually approve to the Oauth every time they log in.
  # See http://googleappsdeveloper.blogspot.com/2011/10/upcoming-changes-to-oauth-20-endpoint.html
  provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], {access_type: 'online', approval_prompt: ''}
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
omniauth-google-oauth2-0.1.19 examples/omni_auth.rb
omniauth-google-oauth2-0.1.18 examples/omni_auth.rb
omniauth-google-oauth2-0.1.17 examples/omni_auth.rb
omniauth-google-oauth2-0.1.16 examples/omni_auth.rb
omniauth-google-oauth2-0.1.15 examples/omni_auth.rb
omniauth-google-oauth2-0.1.13 examples/omni_auth.rb
omniauth-google-oauth2-0.1.12 examples/omni_auth.rb
omniauth-google-oauth2-0.1.11 examples/omni_auth.rb
omniauth-google-oauth2-0.1.10 examples/omni_auth.rb
omniauth-google-oauth2-moses-0.1.10 examples/omni_auth.rb