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

www/saml2/sp/initSLO.php: Fix logout when IdP doesn't have a SingleLogoutService endpoint.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2281 44740490-163a-0410-bde0-09ae8108e29a
parent 53d76dbd
Branches
Tags
No related merge requests found
...@@ -30,6 +30,7 @@ try { ...@@ -30,6 +30,7 @@ try {
$idpMetadata = $metadata->getMetaDataConfig($idpEntityId, 'saml20-idp-remote'); $idpMetadata = $metadata->getMetaDataConfig($idpEntityId, 'saml20-idp-remote');
$SLOendpoint = $idpMetadata->getDefaultEndpoint('SingleLogoutService', array(SAML2_Const::BINDING_HTTP_REDIRECT), NULL); $SLOendpoint = $idpMetadata->getDefaultEndpoint('SingleLogoutService', array(SAML2_Const::BINDING_HTTP_REDIRECT), NULL);
if ($SLOendpoint === NULL) { if ($SLOendpoint === NULL) {
$session->doLogout();
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);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment