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

saml2_Message: Set AuthnInstant in assertion.

Fixes issue 225.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2137 44740490-163a-0410-bde0-09ae8108e29a
parent ae8644ac
No related branches found
No related tags found
No related merge requests found
...@@ -582,10 +582,13 @@ class sspmod_saml2_Message { ...@@ -582,10 +582,13 @@ class sspmod_saml2_Message {
$a->setAuthnContext(SAML2_Const::AC_PASSWORD); $a->setAuthnContext(SAML2_Const::AC_PASSWORD);
$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);
$session = SimpleSAML_Session::getInstance();
$sessionIndex = $session->getSessionIndex(); $sessionIndex = $session->getSessionIndex();
$a->setSessionIndex($sessionIndex); $a->setSessionIndex($sessionIndex);
......
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