summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-22 15:36:41 -0300
committerStan Hu <stanhu@gmail.com>2016-11-21 16:47:24 -0800
commita2ef52b32bd3d1ee70ea333566e330c44e6c9170 (patch)
tree469a4e1ed516c36d31a4bf32df1f719ad8e63475 /config
parent69aaa972038c7b285c06804e04ff5932e468e523 (diff)
downloadgitlab-ce-a2ef52b32bd3d1ee70ea333566e330c44e6c9170.tar.gz
Add custom OmniAuth strategy for Bitbucket OAuth2
Diffstat (limited to 'config')
-rw-r--r--config/initializers/omniauth.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb
index 26c30e523a7..ab5a0561b8c 100644
--- a/config/initializers/omniauth.rb
+++ b/config/initializers/omniauth.rb
@@ -26,3 +26,9 @@ if Gitlab.config.omniauth.enabled
end
end
end
+
+module OmniAuth
+ module Strategies
+ autoload :Bitbucket, Rails.root.join('lib', 'omniauth', 'strategies', 'bitbucket')
+ end
+end