diff options
-rw-r--r-- | modules/saml/lib/IdP/SAML2.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/saml/lib/IdP/SAML2.php b/modules/saml/lib/IdP/SAML2.php index 2eb5e2f..85050b4 100644 --- a/modules/saml/lib/IdP/SAML2.php +++ b/modules/saml/lib/IdP/SAML2.php @@ -563,7 +563,11 @@ class sspmod_saml_IdP_SAML2 { } $a->setNotOnOrAfter(time() + $assertionLifetime); - $a->setAuthnContext(SAML2_Const::AC_PASSWORD); + if (isset($state['saml:AuthnContextClassRef'])) { + $a->setAuthnContext($state['saml:AuthnContextClassRef']); + } else { + $a->setAuthnContext(SAML2_Const::AC_PASSWORD); + } if (isset($state['AuthnInstant'])) { $a->setAuthnInstant($state['AuthnInstant']); |