PHP Classes

File: web/SSO/SAML/saml2/idp/idpInitSingleLogoutServiceiFrame.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/SAML/saml2/idp/idpInitSingleLogoutServiceiFrame.php   Download  
File: web/SSO/SAML/saml2/idp/idpInitSingleLogoutServiceiFrame.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: 640 bytes
 

Contents

Class file image Download
<?php

/*
 * This endpoint is provided for backwards compatibility,
 * and should not be used.
 *
 * Use SingleLogoutService.php?ReturnTo=... instead.
 */
require_once('../../_include.php');

$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
$idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
$idp = SimpleSAML_IdP::getById('saml2:' . $idpEntityId);

if (!isset(
$_REQUEST['RelayState'])) {
    throw new
SimpleSAML_Error_BadRequest('Missing required RelayState parameter.');
}

$idp->doLogoutRedirect(SimpleSAML_Utilities::checkURLAllowed((string)$_REQUEST['RelayState']));
assert('FALSE');