Commit 190a9450 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use accessor for map

parent 5403f4c4
......@@ -23,7 +23,7 @@ OmniAuth.config.before_request_phase do |env|
end
if Gitlab.config.omniauth.enabled
provider_names = Gitlab.config.omniauth.providers.map { |p| p['name'] }
provider_names = Gitlab.config.omniauth.providers.map(&:name)
require 'omniauth-kerberos' if provider_names.include?('kerberos')
require 'omniauth/strategies/kerberos_spnego' if provider_names.include?('kerberos_spnego')
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment