From 96ef01431cba385af1a974c7c976e1fff6a6dc84 Mon Sep 17 00:00:00 2001 From: John Gasper <jtgasper3@gmail.com> Date: Tue, 10 Oct 2017 09:05:50 -0700 Subject: [PATCH] Making the AuthnInstant available in the state array as saml:AuthnInstant and adding that to PersistentAuthData --- modules/saml/www/sp/saml2-acs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/saml/www/sp/saml2-acs.php b/modules/saml/www/sp/saml2-acs.php index 6ac1496f5..2e6b45371 100644 --- a/modules/saml/www/sp/saml2-acs.php +++ b/modules/saml/www/sp/saml2-acs.php @@ -231,6 +231,8 @@ $state['LogoutState'] = $logoutState; $state['saml:AuthenticatingAuthority'] = $authenticatingAuthority; $state['saml:AuthenticatingAuthority'][] = $idp; $state['PersistentAuthData'][] = 'saml:AuthenticatingAuthority'; +$state['saml:AuthnInstant'] = $assertion->getAuthnInstant(); +$state['PersistentAuthData'][] = 'saml:AuthnInstant'; $state['saml:sp:SessionIndex'] = $sessionIndex; $state['PersistentAuthData'][] = 'saml:sp:SessionIndex'; $state['saml:sp:AuthnContext'] = $assertion->getAuthnContext(); @@ -252,7 +254,5 @@ if (isset($state['SimpleSAML_Auth_Source.ReturnURL'])) { } $state['PersistentAuthData'][] = 'saml:sp:prevAuth'; -$state['AuthnInstant'] = $assertion->getAuthnInstant(); - $source->handleResponse($state, $idp, $attributes); assert('FALSE'); -- GitLab