/** * Logout. * * @see SimpleSAML_Auth_Source::logout() */ public function logout(&$state) { parent::logout($state); $server = sspmod_authTiqr_Auth_Tiqr::getServer(false); $session = SimpleSAML_Session::getSessionFromRequest(); $sessionId = $session->getSessionId(); $server->logout($sessionId); }
/** * Log out from this authentication source. * * This method either logs the user out from Negotiate or passes the * logout call to the fallback module. * * @param array &$state Information about the current logout operation. */ public function logout(&$state) { assert('is_array($state)'); /* Get the source that was used to authenticate */ $authId = $state['negotiate:backend']; SimpleSAML_Logger::debug('Negotiate - logout has the following authId: "' . $authId . '"'); if ($authId === NULL) { $session = SimpleSAML_Session::getInstance(); $session->setData('negotiate:disable', 'session', TRUE, 24 * 60 * 60); parent::logout($state); } else { $source = SimpleSAML_Auth_Source::getById($authId); $source->logout($state); } }