Skip to content
Snippets Groups Projects
Commit e8dcbbb2 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Manually remove idp-ssotime data from the session on the IdP, per association...

Manually remove idp-ssotime data from the session on the IdP, per association (instead of using SimpleSAML_Session::DATA_TIMEOUT_LOGOUT).
parent f2b09dfe
No related branches found
No related tags found
No related merge requests found
......@@ -261,7 +261,7 @@ class SimpleSAML_IdP {
if (isset($state['core:SP'])) {
$session = SimpleSAML_Session::getSessionFromRequest();
$session->setData('core:idp-ssotime', $state['core:IdP'] . ';' . $state['core:SP'],
time(), SimpleSAML_Session::DATA_TIMEOUT_LOGOUT);
time(), SimpleSAML_Session::DATA_TIMEOUT_SESSION_END);
}
call_user_func($state['Responder'], $state);
......@@ -460,6 +460,8 @@ class SimpleSAML_IdP {
if ($assocId !== NULL) {
$this->terminateAssociation($assocId);
$session = SimpleSAML_Session::getSessionFromRequest();
$session->deleteData('core:idp-ssotime', $this->id . ':' . $state['saml:SPEntityId']);
}
/* Terminate the local session. */
......@@ -489,6 +491,9 @@ class SimpleSAML_IdP {
assert('is_string($assocId)');
assert('is_string($relayState) || is_null($relayState)');
$session = SimpleSAML_Session::getSessionFromRequest();
$session->deleteData('core:idp-ssotime', $this->id . ';' . substr($assocId, strpos($assocId, ':') +1));
$handler = $this->getLogoutHandler();
$handler->onResponse($assocId, $relayState, $error);
......
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