45 $association = array_pop($state[
'core:LogoutTraditional:Remaining']);
47 $this->idp->finishLogout($state);
61 $this->idp->terminateAssociation(
$id);
62 $state[
'core:Failed'] =
true;
81 $state[
'core:LogoutTraditional:Remaining'] = $this->idp->getAssociations();
83 self::logoutNextSP($state);
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;
118 self::logoutNextSP(
$state);
__construct(\SimpleSAML_IdP $idp)
TraditionalLogout constructor.
static getByState(array &$state)
Retrieve the IdP "owning" the state.
if(!array_key_exists('StateId', $_REQUEST)) $id
logoutNextSP(array &$state)
Picks the next SP and issues a logout request.
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
startLogout(array &$state, $assocId)
Start the logout operation.
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
Create styles array
The data for the language used.
onResponse($assocId, $relayState, \SimpleSAML_Error_Exception $error=null)
Continue the logout operation.
if(!isset($associations[$assocId])) $association
if(!isset($_REQUEST['association'])) $assocId
static saveState(&$state, $stage, $rawId=false)
Save the state.