debian-mirror-gitlab/lib/gitlab/auth/saml/config.rb

34 lines
726 B
Ruby
Raw Normal View History

2018-12-13 13:39:08 +05:30
# frozen_string_literal: true
2018-03-27 19:54:05 +05:30
module Gitlab
module Auth
module Saml
class Config
2019-12-04 20:38:33 +05:30
prepend_if_ee('::EE::Gitlab::Auth::Saml::Config') # rubocop: disable Cop/InjectEnterpriseEditionModule
2018-03-27 19:54:05 +05:30
class << self
def options
2018-05-09 12:01:36 +05:30
Gitlab::Auth::OAuth::Provider.config_for('saml')
2018-03-27 19:54:05 +05:30
end
2018-11-08 19:23:39 +05:30
def upstream_two_factor_authn_contexts
options.args[:upstream_two_factor_authn_contexts]
end
2018-03-27 19:54:05 +05:30
def groups
options[:groups_attribute]
end
def external_groups
options[:external_groups]
end
2018-11-08 19:23:39 +05:30
def admin_groups
options[:admin_groups]
end
2018-03-27 19:54:05 +05:30
end
end
end
end
end