From ee5eb22aab831a931905fd0debe9f6d4f398e06b Mon Sep 17 00:00:00 2001 From: Jaime Perez <jaime.perez@uninett.no> Date: Wed, 5 Mar 2014 14:00:30 +0100 Subject: [PATCH] Remove old endpoints in www/saml2/idp/. --- www/saml2/idp/SingleLogoutServiceiFrame.php | 17 ---------------- .../idp/SingleLogoutServiceiFrameResponse.php | 17 ---------------- .../idp/idpInitSingleLogoutServiceiFrame.php | 20 ------------------- 3 files changed, 54 deletions(-) delete mode 100644 www/saml2/idp/SingleLogoutServiceiFrame.php delete mode 100644 www/saml2/idp/SingleLogoutServiceiFrameResponse.php delete mode 100644 www/saml2/idp/idpInitSingleLogoutServiceiFrame.php diff --git a/www/saml2/idp/SingleLogoutServiceiFrame.php b/www/saml2/idp/SingleLogoutServiceiFrame.php deleted file mode 100644 index ce0cc740a..000000000 --- a/www/saml2/idp/SingleLogoutServiceiFrame.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -/* - * This endpoint is provided for backwards compatibility, - * and should not be used. - * - * Use SingleLogoutService.php instead. - */ -require_once('../../_include.php'); - -SimpleSAML_Logger::info('SAML2.0 - IdP.SingleLogoutServiceiFrame: Accessing SAML 2.0 IdP endpoint SingleLogoutService (iFrame version)'); - -$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted'); -$idp = SimpleSAML_IdP::getById('saml2:' . $idpEntityId); -sspmod_saml_IdP_SAML2::receiveLogoutMessage($idp); -assert('FALSE'); diff --git a/www/saml2/idp/SingleLogoutServiceiFrameResponse.php b/www/saml2/idp/SingleLogoutServiceiFrameResponse.php deleted file mode 100644 index da18eefef..000000000 --- a/www/saml2/idp/SingleLogoutServiceiFrameResponse.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -/* - * This endpoint is provided for backwards compatibility, - * and should not be used. - * - * Use SingleLogoutService.php instead. - */ -require_once('../../_include.php'); - -SimpleSAML_Logger::info('SAML2.0 - IdP.SingleLogoutServiceiFrameResponse: Accessing SAML 2.0 IdP endpoint SingleLogoutServiceResponse (iFrame version)'); - -$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted'); -$idp = SimpleSAML_IdP::getById('saml2:' . $idpEntityId); -sspmod_saml_IdP_SAML2::receiveLogoutMessage($idp); -assert('FALSE'); diff --git a/www/saml2/idp/idpInitSingleLogoutServiceiFrame.php b/www/saml2/idp/idpInitSingleLogoutServiceiFrame.php deleted file mode 100644 index 977265932..000000000 --- a/www/saml2/idp/idpInitSingleLogoutServiceiFrame.php +++ /dev/null @@ -1,20 +0,0 @@ -<?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'); -- GitLab