mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
17 lines
564 B
PHP
17 lines
564 B
PHP
<?php
|
|
|
|
require_once('../../_include.php');
|
|
|
|
$metadata = \SimpleSAML\Metadata\MetaDataStorageHandler::getMetadataHandler();
|
|
$idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
|
|
$idp = \SimpleSAML\IdP::getById('saml2:' . $idpEntityId);
|
|
|
|
\SimpleSAML\Logger::info('SAML2.0 - IdP.initSLO: Accessing SAML 2.0 IdP endpoint init Single Logout');
|
|
|
|
if (!isset($_GET['RelayState'])) {
|
|
throw new \SimpleSAML\Error\Error('NORELAYSTATE');
|
|
}
|
|
|
|
$idp->doLogoutRedirect(\SimpleSAML\Utils\HTTP::checkURLAllowed((string) $_GET['RelayState']));
|
|
assert(false);
|