PHP Classes

File: web/SSO/modules/core/www/idp/resumelogout.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/modules/core/www/idp/resumelogout.php   Download  
File: web/SSO/modules/core/www/idp/resumelogout.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 552 bytes
 

Contents

Class file image Download
<?php

if (!isset($_REQUEST['id'])) {
    throw new
SimpleSAML_Error_BadRequest('Missing id-parameter.');
}
$id = (string)$_REQUEST['id'];

// sanitize the input
$sid = SimpleSAML_Utilities::parseStateID($id);
if (!
is_null($sid['url'])) {
   
SimpleSAML_Utilities::checkURLAllowed($sid['url']);
}

$state = SimpleSAML_Auth_State::loadState($id, 'core:Logout:afterbridge');
$idp = SimpleSAML_IdP::getByState($state);

$assocId = $state['core:TerminatedAssocId'];

$handler = $idp->getLogoutHandler();
$handler->startLogout($state, $assocId);
assert('FALSE');