Skip to content

Instantly share code, notes, and snippets.

@yongjhih
Created October 9, 2013 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yongjhih/6895122 to your computer and use it in GitHub Desktop.
Save yongjhih/6895122 to your computer and use it in GitHub Desktop.
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb │··············
index 39c1b7c2..e645bd5 100644 │··············
--- a/config/initializers/devise.rb │··············
+++ b/config/initializers/devise.rb │··············
@@ -224,6 +224,8 @@ Devise.setup do |config| │··············
end │··············
│··············
Gitlab.config.omniauth.providers.each do |provider| │··············
+ # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo' │··············
+ #config.omniauth provider['name'].to_sym, provider['app_id'], provider['app_secret'], :scope => 'user:email' │··············
case provider['args'] │··············
when Array │··············
# An Array from the configuration will be expanded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment