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

Metadata/SAMLParser: Make the SingleLogoutService endpoint optional for the metadata parser.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@599 44740490-163a-0410-bde0-09ae8108e29a
parent 06c821bb
No related branches found
No related tags found
No related merge requests found
......@@ -448,13 +448,10 @@ class SimpleSAML_Metadata_SAMLParser {
/* Find the single logout service endpoint. */
$slo = $this->getDefaultEndpoint($spd['singleLogoutServices'], array(self::SAML_20_REDIRECT_BINDING));
if($slo === NULL) {
throw new Exception('Could not find any valid SingleLogoutService.' .
' simpleSAMLphp currently supports only the http-redirect binding for SAML 2.0 logout.');
if($slo !== NULL) {
$ret['SingleLogoutService'] = $slo['location'];
}
$ret['SingleLogoutService'] = $slo['location'];
/* Find the NameIDFormat. This may not exists. */
if(count($spd['nameIDFormats']) > 0) {
......@@ -508,11 +505,9 @@ class SimpleSAML_Metadata_SAMLParser {
/* Find the single logout service endpoint. */
$slo = $this->getDefaultEndpoint($idp['singleLogoutServices'], array(self::SAML_20_REDIRECT_BINDING));
if($slo === NULL) {
throw new Exception('Could not find any valid SingleLogoutService.' .
' simpleSAMLphp currently supports only the http-redirect binding for SAML 2.0 logout.');
if($slo !== NULL) {
$ret['SingleLogoutService'] = $slo['location'];
}
$ret['SingleLogoutService'] = $slo['location'];
/* If the response location is set, include it in the returned metadata. */
if($slo['responseLocation']) {
......
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