gitlab-org--gitlab-foss/lib/gitlab/auth/saml/config.rb
Rémy Coutable 0a581fcfa2
Minimize CE/EE difference in Gitlab::Auth::Saml::Config
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-18 16:30:53 +02:00

25 lines
457 B
Ruby

module Gitlab
module Auth
module Saml
class Config
class << self
def options
Gitlab::Auth::OAuth::Provider.config_for('saml')
end
def groups
options[:groups_attribute]
end
def external_groups
options[:external_groups]
end
def admin_groups
options[:admin_groups]
end
end
end
end
end
end