From 14f6f9ef5878f494d56e7ffb75e2d07ec9315260 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Fri, 3 Apr 2009 05:48:26 +0000 Subject: [PATCH] SAML2: Support metadata overrides of SingleLogoutService for IdP initiated SLO. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1457 44740490-163a-0410-bde0-09ae8108e29a --- www/saml2/idp/initSLO.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/saml2/idp/initSLO.php b/www/saml2/idp/initSLO.php index fd5bd691d..118fcb308 100644 --- a/www/saml2/idp/initSLO.php +++ b/www/saml2/idp/initSLO.php @@ -3,6 +3,7 @@ require_once('../../../www/_include.php'); $config = SimpleSAML_Configuration::getInstance(); +$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); $session = SimpleSAML_Session::getInstance(); SimpleSAML_Logger::info('SAML2.0 - IdP.initSLO: Accessing SAML 2.0 IdP endpoint init Single Logout'); @@ -18,8 +19,9 @@ if (!isset($_GET['RelayState'])) { $returnTo = $_GET['RelayState']; +$slo = $metadata->getGenerated('SingleLogoutService', 'saml20-idp-hosted'); + /* We turn processing over to the SingleLogoutService script. */ -SimpleSAML_Utilities::redirect('/' . $config->getBaseURL() . 'saml2/idp/SingleLogoutService.php', - array('ReturnTo' => $returnTo)); +SimpleSAML_Utilities::redirect($slo, array('ReturnTo' => $returnTo)); ?> \ No newline at end of file -- GitLab