debian-mirror-gitlab/lib/gitlab/auth/saml/config.rb
2018-03-27 19:54:05 +05:30

21 lines
408 B
Ruby

module Gitlab
module Auth
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
end