Skip to content
Snippets Groups Projects
Commit d4199a5a authored by Olav Morken's avatar Olav Morken
Browse files

saml:IdP: Allow AuthnContextClassRef to be set by processing filters.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2656 44740490-163a-0410-bde0-09ae8108e29a
parent a9c6ab07
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment