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'])) {
 
   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.
'");');
 
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