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

saml:SP: Do not return PartialLogout error when unable to terminate all sessions.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2764 44740490-163a-0410-bde0-09ae8108e29a
parent 75c1b037
No related branches found
No related tags found
No related merge requests found
...@@ -102,13 +102,8 @@ if ($message instanceof SAML2_LogoutResponse) { ...@@ -102,13 +102,8 @@ if ($message instanceof SAML2_LogoutResponse) {
$lr->setRelayState($message->getRelayState()); $lr->setRelayState($message->getRelayState());
$lr->setInResponseTo($message->getId()); $lr->setInResponseTo($message->getId());
/* We should return a partial logout if we were unable to log out of all the given session(s). */
if ($numLoggedOut < count($sessionIndexes)) { if ($numLoggedOut < count($sessionIndexes)) {
$lr->setStatus(array( SimpleSAML_Logger::warning('Logged out of ' . $numLoggedOut . ' of ' . count($sessionIndexes) . ' sessions.');
'Code' => SAML2_Const::STATUS_SUCCESS,
'SubCode' => SAML2_Const::STATUS_PARTIAL_LOGOUT,
'Message' => 'Logged out of ' . $numLoggedOut . ' of ' . count($sessionIndexes) . ' sessions.'
));
} }
$binding->send($lr); $binding->send($lr);
......
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