debian-mirror-gitlab/lib/gitlab/saml/config.rb

20 lines
358 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
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