Skip to content
Snippets Groups Projects
Commit 4c317531 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

If kerberos is enabled require it.

parent cbba28bd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment