Skip to content
Snippets Groups Projects
Commit ffa90f8d authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Fix two fixes that caused SimpleSAMLphp in some cases to produce schema-invalid metadata

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1864 44740490-163a-0410-bde0-09ae8108e29a
parent 98f19eef
No related branches found
No related tags found
No related merge requests found
...@@ -287,7 +287,7 @@ class SimpleSAML_Metadata_SAMLBuilder { ...@@ -287,7 +287,7 @@ class SimpleSAML_Metadata_SAMLBuilder {
} }
if ( array_key_exists('name', $metadata) || array_key_exists('attributes', $metadata)) { if ( array_key_exists('name', $metadata) && array_key_exists('attributes', $metadata)) {
/** /**
* Add an AttributeConsumingService element with information as name and description and list * Add an AttributeConsumingService element with information as name and description and list
* of requested attributes * of requested attributes
......
...@@ -481,6 +481,7 @@ class SimpleSAML_Metadata_SAMLParser { ...@@ -481,6 +481,7 @@ class SimpleSAML_Metadata_SAMLParser {
if($acs === NULL) { if($acs === NULL) {
SimpleSAML_Logger::warning('Could not find a supported SAML 1.x AssertionConsumerService endpoint for ' . SimpleSAML_Logger::warning('Could not find a supported SAML 1.x AssertionConsumerService endpoint for ' .
var_export($ret['entityid'], TRUE) . '.'); var_export($ret['entityid'], TRUE) . '.');
return;
} else { } else {
$ret['AssertionConsumerService'] = $acs['Location']; $ret['AssertionConsumerService'] = $acs['Location'];
} }
...@@ -506,7 +507,6 @@ class SimpleSAML_Metadata_SAMLParser { ...@@ -506,7 +507,6 @@ class SimpleSAML_Metadata_SAMLParser {
break; break;
} }
return $ret; return $ret;
} }
...@@ -548,6 +548,7 @@ class SimpleSAML_Metadata_SAMLParser { ...@@ -548,6 +548,7 @@ class SimpleSAML_Metadata_SAMLParser {
if($sso === NULL) { if($sso === NULL) {
SimpleSAML_Logger::warning('Could not find a supported SAML 1.x SingleSignOnService endpoint for ' . SimpleSAML_Logger::warning('Could not find a supported SAML 1.x SingleSignOnService endpoint for ' .
var_export($ret['entityid'], TRUE) . '.'); var_export($ret['entityid'], TRUE) . '.');
return;
} else { } else {
$ret['SingleSignOnService'] = $sso['Location']; $ret['SingleSignOnService'] = $sso['Location'];
} }
...@@ -877,8 +878,7 @@ class SimpleSAML_Metadata_SAMLParser { ...@@ -877,8 +878,7 @@ class SimpleSAML_Metadata_SAMLParser {
$attcs = SimpleSAML_Utilities::getDOMChildren($element, 'AttributeConsumingService', '@md'); $attcs = SimpleSAML_Utilities::getDOMChildren($element, 'AttributeConsumingService', '@md');
if (count($attcs) > 0) { if (count($attcs) > 0) {
self::parseAttributeConsumerService($attcs[0], $sp); self::parseAttributeConsumerService($attcs[0], $sp);
} }
$this->spDescriptors[] = $sp; $this->spDescriptors[] = $sp;
} }
......
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