Revision: 2137
Author: olavmrk
Date: Tue Jan 26 02:07:33 2010
Log: saml2_Message: Set AuthnInstant in assertion.

Fixes issue 225.
http://code.google.com/p/simplesamlphp/source/detail?r=2137

Modified:
 /trunk/modules/saml2/lib/Message.php

=======================================
--- /trunk/modules/saml2/lib/Message.php        Thu Nov 12 06:43:15 2009
+++ /trunk/modules/saml2/lib/Message.php        Tue Jan 26 02:07:33 2010
@@ -582,10 +582,13 @@

                $a->setAuthnContext(SAML2_Const::AC_PASSWORD);

+               $session = SimpleSAML_Session::getInstance();
+
+               $a->setAuthnInstant($session->getAuthnInstant());
+
                $sessionLifetime = $config->getInteger('session.duration', 
8*60*60);
                $a->setSessionNotOnOrAfter(time() + $sessionLifetime);

-               $session = SimpleSAML_Session::getInstance();
                $sessionIndex = $session->getSessionIndex();
                $a->setSessionIndex($sessionIndex);

--
You received this message because you are subscribed to the Google Groups 
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simplesamlphp-commits?hl=en.

Reply via email to