2016-04-04 20:09:12 -04:00
|
|
|
module Gitlab
|
|
|
|
module Saml
|
|
|
|
class Config
|
|
|
|
class << self
|
|
|
|
def options
|
|
|
|
Gitlab.config.omniauth.providers.find { |provider| provider.name == 'saml' }
|
|
|
|
end
|
|
|
|
|
|
|
|
def groups
|
2016-04-05 20:20:18 -04:00
|
|
|
options[:groups_attribute]
|
2016-04-04 20:09:12 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def external_groups
|
2016-04-05 20:20:18 -04:00
|
|
|
options[:external_groups]
|
2016-04-04 20:09:12 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|