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');