Class: Gitlab::Saml::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/saml/config.rb

Class Method Summary collapse

Class Method Details

.external_groupsObject


14
15
16
# File 'lib/gitlab/saml/config.rb', line 14

def external_groups
  options[:external_groups]
end

.groupsObject


10
11
12
# File 'lib/gitlab/saml/config.rb', line 10

def groups
  options[:groups_attribute]
end

.optionsObject


6
7
8
# File 'lib/gitlab/saml/config.rb', line 6

def options
  Gitlab.config.omniauth.providers.find { |provider| provider.name == 'saml' }
end