46 $this->idp->finishLogout(
$state);
58 }
catch (\Exception $e) {
60 $this->idp->terminateAssociation(
$id);
61 $state[
'core:Failed'] =
true;
80 $state[
'core:LogoutTraditional:Remaining'] = $this->idp->getAssociations();
103 throw new \SimpleSAML_Error_Exception(
'RelayState lost during logout.');
108 if ($error ===
null) {
110 $this->idp->terminateAssociation(
$assocId);
113 $error->logWarning();
114 $state[
'core:Failed'] =
true;
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
An exception for terminatinating execution or to throw for unit testing.
__construct(\SimpleSAML_IdP $idp)
TraditionalLogout constructor.
logoutNextSP(array &$state)
Picks the next SP and issues a logout request.
onResponse($assocId, $relayState, \SimpleSAML_Error_Exception $error=null)
Continue the logout operation.
startLogout(array &$state, $assocId)
Start the logout operation.
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
static saveState(&$state, $stage, $rawId=false)
Save the state.
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
static getByState(array &$state)
Retrieve the IdP "owning" the state.
if(!array_key_exists('StateId', $_REQUEST)) $id
if(!isset($associations[$assocId])) $association
if(!isset($_REQUEST['association'])) $assocId