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

SAMLBuilder: Move ArtifactResolutionService to the correct position.

According to the schema, the ArtifactResolutionService element(s)
should be located before the SingleLogoutService element(s).

Patch by Danny Bollaert <danny.bollaert@gmail.com>.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2184 44740490-163a-0410-bde0-09ae8108e29a
parent c6d4e259
No related branches found
No related tags found
No related merge requests found
...@@ -420,6 +420,10 @@ class SimpleSAML_Metadata_SAMLBuilder { ...@@ -420,6 +420,10 @@ class SimpleSAML_Metadata_SAMLBuilder {
$this->addCertificate($e, $metadata); $this->addCertificate($e, $metadata);
if ($metadata->hasValue('ArtifactResolutionService')){
$this->addEndpoints($e, 'ArtifactResolutionService', $metadata->getEndpoints('ArtifactResolutionService'));
}
$this->addEndpoints($e, 'SingleLogoutService', $metadata->getEndpoints('SingleLogoutService')); $this->addEndpoints($e, 'SingleLogoutService', $metadata->getEndpoints('SingleLogoutService'));
if ($metadata->hasValue('NameIDFormat')) { if ($metadata->hasValue('NameIDFormat')) {
...@@ -428,10 +432,6 @@ class SimpleSAML_Metadata_SAMLBuilder { ...@@ -428,10 +432,6 @@ class SimpleSAML_Metadata_SAMLBuilder {
$e->appendChild($t); $e->appendChild($t);
} }
if ($metadata->hasValue('ArtifactResolutionService')){
$this->addEndpoints($e, 'ArtifactResolutionService', $metadata->getEndpoints('ArtifactResolutionService'));
}
$this->addEndpoints($e, 'SingleSignOnService', $metadata->getEndpoints('SingleSignOnService')); $this->addEndpoints($e, 'SingleSignOnService', $metadata->getEndpoints('SingleSignOnService'));
$this->entityDescriptor->appendChild($e); $this->entityDescriptor->appendChild($e);
......
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