43 assert(
'is_string($assocId) || is_null($assocId)');
48 $this->idp->finishLogout($state);
59 $spName = $this->idp->getSPName(
$assocId);
60 if ($spName === null) {
64 $state[
'core:Logout-IFrame:From'] = $spName;
66 $state[
'core:Logout-IFrame:From'] = null;
72 if (isset($state[
'core:Logout-IFrame:InitType'])) {
73 $params[
'type'] = $state[
'core:Logout-IFrame:InitType'];
92 assert(
'is_string($assocId)');
95 $this->idp->terminateAssociation(
$assocId);
101 <title>Logout response from %
s</title>
106 $errorMsg =
$error->getMessage();
107 echo(
'window.parent.logoutFailed("'.$spId.
'", "'.addslashes($errorMsg).
'");');
109 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.
Create styles array
The data for the language used.
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.