gitlab-org--gitlab-foss/lib/gitlab/saml/config.rb
2016-07-01 21:56:17 +02:00

19 lines
358 B
Ruby

module Gitlab
module Saml
class Config
class << self
def options
Gitlab.config.omniauth.providers.find { |provider| provider.name == 'saml' }
end
def groups
options[:groups_attribute]
end
def external_groups
options[:external_groups]
end
end
end
end
end