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

saml:SP: Support SOAP LogoutRequest.

When using the new SQL datastore, we can support SOAP logout.

Fixes issue 24.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2558 44740490-163a-0410-bde0-09ae8108e29a
parent 366ad253
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,14 @@ $slo->Binding = SAML2_Const::BINDING_HTTP_REDIRECT; ...@@ -34,6 +34,14 @@ $slo->Binding = SAML2_Const::BINDING_HTTP_REDIRECT;
$slo->Location = SimpleSAML_Module::getModuleURL('saml/sp/saml2-logout.php/' . $sourceId); $slo->Location = SimpleSAML_Module::getModuleURL('saml/sp/saml2-logout.php/' . $sourceId);
$sp->SingleLogoutService[] = $slo; $sp->SingleLogoutService[] = $slo;
$store = SimpleSAML_Store::getInstance();
if ($store instanceof SimpleSAML_Store_SQL) {
/* We can properly support SOAP logout. */
$slo = new SAML2_XML_md_EndpointType();
$slo->Binding = SAML2_Const::BINDING_SOAP;
$slo->Location = SimpleSAML_Module::getModuleURL('saml/sp/saml2-logout.php/' . $sourceId);
$sp->SingleLogoutService[] = $slo;
}
$acs = new SAML2_XML_md_IndexedEndpointType(); $acs = new SAML2_XML_md_IndexedEndpointType();
$acs->index = 0; $acs->index = 0;
......
...@@ -84,8 +84,6 @@ if ($message instanceof SAML2_LogoutResponse) { ...@@ -84,8 +84,6 @@ if ($message instanceof SAML2_LogoutResponse) {
$lr->setRelayState($message->getRelayState()); $lr->setRelayState($message->getRelayState());
$lr->setInResponseTo($message->getId()); $lr->setInResponseTo($message->getId());
$binding = new SAML2_HTTPRedirect();
$binding->setDestination(sspmod_saml_Message::getDebugDestination());
$binding->send($lr); $binding->send($lr);
} else { } else {
throw new SimpleSAML_Error_BadRequest('Unknown message received on logout endpoint: ' . get_class($message)); throw new SimpleSAML_Error_BadRequest('Unknown message received on logout endpoint: ' . get_class($message));
......
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