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
path: root/config
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-06-01 09:05:07 +0300
committerLin Jen-Shin <godfat@godfat.org>2018-06-01 09:30:10 +0300
commit1e2b6cf514bcefd21520fef63b3fee5a29d334cd (patch)
tree462fc79ea4dd3b80af793f35a69ee0c5bf8bbc1e /config
parent39b6f31c66ff51451033ff84a2832731065cd28d (diff)
Introduce Gitlab::Auth.omniauth_setup_providers
Which could extend from EE
Diffstat (limited to 'config')
-rw-r--r--config/initializers/omniauth.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb
index a93a43d88ee..a7fa926a853 100644
--- a/config/initializers/omniauth.rb
+++ b/config/initializers/omniauth.rb
@@ -19,11 +19,5 @@ end
if Gitlab.config.omniauth.enabled
provider_names = Gitlab.config.omniauth.providers.map(&:name)
- require 'omniauth-kerberos' if provider_names.include?('kerberos')
-
- Gitlab::Auth.omniauth_providers.each do |provider|
- if provider_names.include?(provider)
- require_dependency "omni_auth/strategies/#{provider}"
- end
- end
+ Gitlab::Auth.omniauth_setup_providers(provider_names)
end