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

SAML2 metadata: The keydescriptor must have the use="signing" attribute.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1369 44740490-163a-0410-bde0-09ae8108e29a
parent dd537c4b
No related branches found
No related tags found
No related merge requests found
...@@ -604,6 +604,7 @@ class SimpleSAML_Metadata_SAMLBuilder { ...@@ -604,6 +604,7 @@ class SimpleSAML_Metadata_SAMLBuilder {
$certData = $certInfo['certData']; $certData = $certInfo['certData'];
$keyDescriptor = $this->createElement('KeyDescriptor'); $keyDescriptor = $this->createElement('KeyDescriptor');
$keyDescriptor->setAttribute('use', 'signing');
$ssoDesc->appendChild($keyDescriptor); $ssoDesc->appendChild($keyDescriptor);
$keyInfo = $this->document->createElementNS('http://www.w3.org/2000/09/xmldsig#', 'ds:KeyInfo'); $keyInfo = $this->document->createElementNS('http://www.w3.org/2000/09/xmldsig#', 'ds:KeyInfo');
......
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