If kerberos is enabled require it.

This commit is contained in:
Marin Jankovski 2015-06-15 18:04:30 +02:00
parent cbba28bdb6
commit 4c317531b4
1 changed files with 7 additions and 0 deletions

View File

@ -17,3 +17,10 @@ OmniAuth.config.allowed_request_methods << :get if Gitlab.config.omniauth.auto_s
OmniAuth.config.before_request_phase do |env|
OmniAuth::RequestForgeryProtection.new(env).call
end
if Gitlab.config.omniauth.enabled
Gitlab.config.omniauth.providers.each do |provider|
next unless provider['name'] == 'kerberos'
require 'omniauth-kerberos'
end
end