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

Stop using SimpleSAML_Session::getAuthority() in SimpleSAML_Auth_Default.

parent e47d6d27
No related branches found
No related tags found
No related merge requests found
......@@ -226,17 +226,18 @@ class SimpleSAML_Auth_Default {
$source = $state['SimpleSAML_Auth_Default.logoutSource'];
$session = SimpleSAML_Session::getSessionFromRequest();
$authId = $session->getAuthority();
if (!$session->isValid($source)) {
SimpleSAML_Logger::warning(
'Received logout from an invalid authentication source '.
var_export($source, TRUE)
);
if ($authId !== $source) {
SimpleSAML_Logger::warning('Received logout from different authentication source ' .
'than the current. Current is ' . var_export($authId, TRUE) .
'. Logout source is ' . var_export($source, TRUE) . '.');
return;
}
$session->doLogout();
$session->doLogout($source);
}
......
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