diff options
Diffstat (limited to 'config/initializers/7_omniauth.rb')
-rw-r--r-- | config/initializers/7_omniauth.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/initializers/7_omniauth.rb b/config/initializers/7_omniauth.rb new file mode 100644 index 00000000000..7ef5c10da08 --- /dev/null +++ b/config/initializers/7_omniauth.rb @@ -0,0 +1,9 @@ +module OmniAuth::Strategies + server = Gitlab.config.ldap.servers.values.first + const_set(server['provider_class'], Class.new(LDAP)) +end + +OmniauthCallbacksController.class_eval do + server = Gitlab.config.ldap.servers.values.first + alias_method server['provider_name'], :ldap +end
\ No newline at end of file |