47 $this->idp->finishLogout(
$state);
59 }
catch (\Exception $e) {
61 $this->idp->terminateAssociation(
$id);
62 $state[
'core:Failed'] =
true;
81 $state[
'core:LogoutTraditional:Remaining'] = $this->idp->getAssociations();
100 assert(
'is_string($assocId)');
101 assert(
'is_string($relayState) || is_null($relayState)');
104 throw new \SimpleSAML_Error_Exception(
'RelayState lost during logout.');
111 $this->idp->terminateAssociation(
$assocId);
115 $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