Class: Gitlab::Auth::Saml::Config

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

Class Method Summary collapse

Class Method Details

.admin_groupsObject


24
25
26
# File 'lib/gitlab/auth/saml/config.rb', line 24

def admin_groups
  options[:admin_groups]
end

.external_groupsObject


20
21
22
# File 'lib/gitlab/auth/saml/config.rb', line 20

def external_groups
  options[:external_groups]
end

.groupsObject


16
17
18
# File 'lib/gitlab/auth/saml/config.rb', line 16

def groups
  options[:groups_attribute]
end

.optionsObject


8
9
10
# File 'lib/gitlab/auth/saml/config.rb', line 8

def options
  Gitlab::Auth::OAuth::Provider.config_for('saml')
end

.upstream_two_factor_authn_contextsObject


12
13
14
# File 'lib/gitlab/auth/saml/config.rb', line 12

def upstream_two_factor_authn_contexts
  options.args[:upstream_two_factor_authn_contexts]
end