2018-10-11 16:12:21 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-02-23 07:10:39 -05:00
|
|
|
module Gitlab
|
|
|
|
module Auth
|
|
|
|
module Saml
|
|
|
|
class Config
|
|
|
|
class << self
|
|
|
|
def options
|
2018-03-12 17:01:43 -04:00
|
|
|
Gitlab::Auth::OAuth::Provider.config_for('saml')
|
2018-02-23 07:10:39 -05:00
|
|
|
end
|
|
|
|
|
2018-06-25 11:32:03 -04:00
|
|
|
def upstream_two_factor_authn_contexts
|
|
|
|
options.args[:upstream_two_factor_authn_contexts]
|
|
|
|
end
|
|
|
|
|
2018-02-23 07:10:39 -05:00
|
|
|
def groups
|
|
|
|
options[:groups_attribute]
|
|
|
|
end
|
|
|
|
|
|
|
|
def external_groups
|
|
|
|
options[:external_groups]
|
|
|
|
end
|
2018-05-18 07:18:06 -04:00
|
|
|
|
|
|
|
def admin_groups
|
|
|
|
options[:admin_groups]
|
|
|
|
end
|
2018-02-23 07:10:39 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|