Skip to content
Snippets Groups Projects
Commit 9a60843f authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Add support for AuthnRequestsSigned and WantAssertionsSigned when generating...

Add support for AuthnRequestsSigned and WantAssertionsSigned when generating SSP metadata from a SPSSODescriptor.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3190 44740490-163a-0410-bde0-09ae8108e29a
parent 74d4029d
No related branches found
No related tags found
No related merge requests found
......@@ -623,6 +623,15 @@ class SimpleSAML_Metadata_SAMLParser {
$ret['keys'] = $spd['keys'];
}
/* Add validate.authnrequest. */
if (array_key_exists('AuthnRequestsSigned', $spd)) {
$ret['validate.authnrequest'] = $spd['AuthnRequestsSigned'];
}
/* Add saml20.sign.assertion. */
if (array_key_exists('WantAssertionsSigned', $spd)) {
$ret['saml20.sign.assertion'] = $spd['WantAssertionsSigned'];
}
/* Add extensions. */
$this->addExtensions($ret, $spd);
......@@ -810,6 +819,16 @@ class SimpleSAML_Metadata_SAMLParser {
self::parseAttributeConsumerService($attcs[0], $sp);
}
/* Check AuthnRequestsSigned */
if ($element->AuthnRequestsSigned !== NULL) {
$sp['AuthnRequestsSigned'] = $element->AuthnRequestsSigned;
}
/* Check WantAssertionsSigned */
if ($element->WantAssertionsSigned !== NULL) {
$sp['WantAssertionsSigned'] = $element->WantAssertionsSigned;
}
$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