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'])) {
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.
'");');
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
An exception for terminatinating execution or to throw for unit testing.
startLogout(array &$state, $assocId)
Start the logout operation.
__construct(\SimpleSAML_IdP $idp)
LogoutIFrame constructor.
onResponse($assocId, $relayState, \SimpleSAML_Error_Exception $error=null)
Continue the logout operation.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
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 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