From b5d651ce08ef5e4528525d513d3312043fdda58b Mon Sep 17 00:00:00 2001 From: TJ Date: Mon, 3 Jul 2023 14:07:02 +0300 Subject: [PATCH] adding requestedAuthnContext as an option --- inc/class-wp-saml-auth-options.php | 3 +++ wp-saml-auth.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/inc/class-wp-saml-auth-options.php b/inc/class-wp-saml-auth-options.php index 0a59db2..7068b55 100644 --- a/inc/class-wp-saml-auth-options.php +++ b/inc/class-wp-saml-auth-options.php @@ -144,6 +144,9 @@ public static function filter_option( $value, $option_name ) { 'certFingerprint' => $options['certFingerprint'], 'certFingerprintAlgorithm' => $options['certFingerprintAlgorithm'], ), + 'security' => array( + 'requestedAuthnContext' => false, + ) ), ); diff --git a/wp-saml-auth.php b/wp-saml-auth.php index 40c8a74..32d901e 100644 --- a/wp-saml-auth.php +++ b/wp-saml-auth.php @@ -90,6 +90,9 @@ function wpsa_filter_option( $value, $option_name ) { 'certFingerprint' => '', 'certFingerprintAlgorithm' => '', ), + 'security' => array( + 'requestedAuthnContext' => false, + ) ), /** * Whether or not to automatically provision new WordPress users.