diff options
author | Roger Rüttimann <roger.ruettimann@gmail.com> | 2018-06-25 18:32:03 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-06-25 18:32:03 +0300 |
commit | 2efe27ba181daa18db9e227b13be428ebdfc23f1 (patch) | |
tree | eea8a62ad5159b63cec5e367f4be49bfd09aec97 /lib/gitlab/auth/saml/config.rb | |
parent | 77fe416681a553005f9ec769113555830c8fb07c (diff) |
Honor saml assurance level to allow 2FA bypassing
Diffstat (limited to 'lib/gitlab/auth/saml/config.rb')
-rw-r--r-- | lib/gitlab/auth/saml/config.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/auth/saml/config.rb b/lib/gitlab/auth/saml/config.rb index 5fa9581f837..625dab7c6f4 100644 --- a/lib/gitlab/auth/saml/config.rb +++ b/lib/gitlab/auth/saml/config.rb @@ -7,6 +7,10 @@ module Gitlab Gitlab::Auth::OAuth::Provider.config_for('saml') end + def upstream_two_factor_authn_contexts + options.args[:upstream_two_factor_authn_contexts] + end + def groups options[:groups_attribute] end |