From 29ac8bdf318fb8e048a001529edcab021c3b0804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20P=C3=A9rez=20Crespo?= <jaime.perez@uninett.no> Date: Fri, 9 Aug 2013 09:37:33 +0000 Subject: [PATCH] Bugfix for issue #561. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3259 44740490-163a-0410-bde0-09ae8108e29a --- modules/saml/lib/IdP/SAML2.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/saml/lib/IdP/SAML2.php b/modules/saml/lib/IdP/SAML2.php index 8b8897eb4..79c147a42 100644 --- a/modules/saml/lib/IdP/SAML2.php +++ b/modules/saml/lib/IdP/SAML2.php @@ -551,7 +551,13 @@ class sspmod_saml_IdP_SAML2 { 'idpEntityID' => $idpMetadata->getString('entityid'), )); - $binding = new SAML2_HTTPRedirect(); + $dst = $spMetadata->getDefaultEndpoint('SingleLogoutService', array( + SAML2_Const::BINDING_HTTP_REDIRECT, + SAML2_Const::BINDING_HTTP_POST) + ); + $binding = SAML2_Binding::getBinding($dst['Binding']); + $lr->setDestination($dst['Location']); + return $binding->getRedirectURL($lr); } -- GitLab