mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
23 lines
399 B
Ruby
23 lines
399 B
Ruby
# Load a specific server configuration
|
|
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
|