Skip to content
Snippets Groups Projects
Commit f099e70f authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

HTTP-POST SLO support for the old, deprecated SP interface.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3263 44740490-163a-0410-bde0-09ae8108e29a
parent b97b910e
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,9 @@ class SimpleSAML_Metadata_MetaDataStorageHandler { ...@@ -100,6 +100,9 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
case 'SingleLogoutService' : case 'SingleLogoutService' :
return $baseurl . 'saml2/sp/SingleLogoutService.php'; return $baseurl . 'saml2/sp/SingleLogoutService.php';
case 'SingleLogoutServiceBinding' :
return SAML2_Const::BINDING_HTTP_REDIRECT;
} }
} elseif($set == 'saml20-idp-hosted') { } elseif($set == 'saml20-idp-hosted') {
......
...@@ -34,7 +34,6 @@ try { ...@@ -34,7 +34,6 @@ try {
SimpleSAML_Logger::info('SAML2.0 - SP.initSLO: No supported SingleLogoutService endpoint in IdP.'); SimpleSAML_Logger::info('SAML2.0 - SP.initSLO: No supported SingleLogoutService endpoint in IdP.');
SimpleSAML_Utilities::redirect($returnTo); SimpleSAML_Utilities::redirect($returnTo);
} }
$lr->setDestination($SLOendpoint['Location']);
$spEntityId = isset($_GET['spentityid']) ? $_GET['spentityid'] : $metadata->getMetaDataCurrentEntityID(); $spEntityId = isset($_GET['spentityid']) ? $_GET['spentityid'] : $metadata->getMetaDataCurrentEntityID();
$spMetadata = $metadata->getMetaDataConfig($spEntityId, 'saml20-sp-hosted'); $spMetadata = $metadata->getMetaDataConfig($spEntityId, 'saml20-sp-hosted');
...@@ -44,6 +43,7 @@ try { ...@@ -44,6 +43,7 @@ try {
$lr = sspmod_saml_Message::buildLogoutRequest($spMetadata, $idpMetadata); $lr = sspmod_saml_Message::buildLogoutRequest($spMetadata, $idpMetadata);
$lr->setNameId($nameId); $lr->setNameId($nameId);
$lr->setSessionIndex($session->getAuthData('saml2', 'saml:sp:SessionIndex')); $lr->setSessionIndex($session->getAuthData('saml2', 'saml:sp:SessionIndex'));
$lr->setDestination($SLOendpoint['Location']);
$session->doLogout('saml2'); $session->doLogout('saml2');
......
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