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

saml:IdP: Set NotOnOrAfter on LogoutRequest sent from IdP.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2756 44740490-163a-0410-bde0-09ae8108e29a
parent 7fb71742
No related branches found
No related tags found
No related merge requests found
......@@ -464,6 +464,12 @@ class sspmod_saml_IdP_SAML2 {
$lr->setSessionIndex($association['saml:SessionIndex']);
$lr->setNameId($association['saml:NameID']);
$assertionLifetime = $spMetadata->getInteger('assertion.lifetime', NULL);
if ($assertionLifetime === NULL) {
$assertionLifetime = $idpMetadata->getInteger('assertion.lifetime', 300);
}
$lr->setNotOnOrAfter(time() + $assertionLifetime);
$encryptNameId = $spMetadata->getBoolean('nameid.encryption', NULL);
if ($encryptNameId === NULL) {
$encryptNameId = $idpMetadata->getBoolean('nameid.encryption', FALSE);
......
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