Skip to content
Snippets Groups Projects
Commit 14f6f9ef authored by Olav Morken's avatar Olav Morken
Browse files

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
parent ab4775e5
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
require_once('../../../www/_include.php'); require_once('../../../www/_include.php');
$config = SimpleSAML_Configuration::getInstance(); $config = SimpleSAML_Configuration::getInstance();
$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
$session = SimpleSAML_Session::getInstance(); $session = SimpleSAML_Session::getInstance();
SimpleSAML_Logger::info('SAML2.0 - IdP.initSLO: Accessing SAML 2.0 IdP endpoint init Single Logout'); SimpleSAML_Logger::info('SAML2.0 - IdP.initSLO: Accessing SAML 2.0 IdP endpoint init Single Logout');
...@@ -18,8 +19,9 @@ if (!isset($_GET['RelayState'])) { ...@@ -18,8 +19,9 @@ if (!isset($_GET['RelayState'])) {
$returnTo = $_GET['RelayState']; $returnTo = $_GET['RelayState'];
$slo = $metadata->getGenerated('SingleLogoutService', 'saml20-idp-hosted');
/* We turn processing over to the SingleLogoutService script. */ /* We turn processing over to the SingleLogoutService script. */
SimpleSAML_Utilities::redirect('/' . $config->getBaseURL() . 'saml2/idp/SingleLogoutService.php', SimpleSAML_Utilities::redirect($slo, array('ReturnTo' => $returnTo));
array('ReturnTo' => $returnTo));
?> ?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment