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

saml:IdP: Use $state['AuthnInstant'] instead of ->getAuthnInstant().

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2653 44740490-163a-0410-bde0-09ae8108e29a
parent db981bc5
No related branches found
No related tags found
No related merge requests found
...@@ -565,9 +565,13 @@ class sspmod_saml_IdP_SAML2 { ...@@ -565,9 +565,13 @@ class sspmod_saml_IdP_SAML2 {
$a->setAuthnContext(SAML2_Const::AC_PASSWORD); $a->setAuthnContext(SAML2_Const::AC_PASSWORD);
$session = SimpleSAML_Session::getInstance(); if (isset($state['AuthnInstant'])) {
$a->setAuthnInstant($state['AuthnInstant']);
$a->setAuthnInstant($session->getAuthnInstant()); } else {
/* For backwards compatibility. Remove in version 1.8. */
$session = SimpleSAML_Session::getInstance();
$a->setAuthnInstant($session->getAuthnInstant());
}
$sessionLifetime = $config->getInteger('session.duration', 8*60*60); $sessionLifetime = $config->getInteger('session.duration', 8*60*60);
$a->setSessionNotOnOrAfter(time() + $sessionLifetime); $a->setSessionNotOnOrAfter(time() + $sessionLifetime);
......
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