Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gems/omniauth-google-oauth2/examples/omni_auth.rb')
-rw-r--r--vendor/gems/omniauth-google-oauth2/examples/omni_auth.rb37
1 files changed, 0 insertions, 37 deletions
diff --git a/vendor/gems/omniauth-google-oauth2/examples/omni_auth.rb b/vendor/gems/omniauth-google-oauth2/examples/omni_auth.rb
deleted file mode 100644
index 0a94164d766..00000000000
--- a/vendor/gems/omniauth-google-oauth2/examples/omni_auth.rb
+++ /dev/null
@@ -1,37 +0,0 @@
-# frozen_string_literal: true
-
-# Google's OAuth2 docs. Make sure you are familiar with all the options
-# before attempting to configure this gem.
-# https://developers.google.com/accounts/docs/OAuth2Login
-
-Rails.application.config.middleware.use OmniAuth::Builder do
- # 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
- # to include the default scopes 'email' and 'profile'
- #
- # provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], scope: 'http://gdata.youtube.com,email,profile,plus.me'
-
- # Custom scope for users only using Google for account creation/auth and do not require a refresh token.
- #
- # provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], access_type: 'online', prompt: ''
-
- # To include information about people in your circles you must include the 'plus.login' scope.
- #
- # provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], skip_friends: false, scope: 'email,profile,plus.login'
-
- # If you need to acquire whether user picture is a default one or uploaded by user.
- #
- # provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], skip_image_info: false
-end