47 $this->idp->finishLogout($state);
58 $spName = $this->idp->getSPName(
$assocId);
59 if ($spName === null) {
63 $state[
'core:Logout-IFrame:From'] = $spName;
65 $state[
'core:Logout-IFrame:From'] = null;
71 if (isset($state[
'core:Logout-IFrame:InitType'])) {
72 $params[
'type'] = $state[
'core:Logout-IFrame:InitType'];
94 $this->idp->terminateAssociation(
$assocId);
100 <title>Logout response from %
s</title>
105 $errorMsg = $error->getMessage();
106 echo(
'window.parent.logoutFailed("'.$spId.
'", "'.addslashes($errorMsg).
'");');
108 echo(
'window.parent.logoutCompleted("'.$spId.
'");');
static getByState(array &$state)
Retrieve the IdP "owning" the state.
onResponse($assocId, $relayState, \SimpleSAML_Error_Exception $error=null)
Continue the logout operation.
if(!array_key_exists('StateId', $_REQUEST)) $id
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
if(!isset($associations[$assocId])) $association
__construct(\SimpleSAML_IdP $idp)
LogoutIFrame constructor.
startLogout(array &$state, $assocId)
Start the logout operation.
if(!isset($_REQUEST['association'])) $assocId
static saveState(&$state, $stage, $rawId=false)
Save the state.