Revision: 1947
Author: olavmrk
Date: Wed Nov 4 05:52:30 2009
Log: SAMLBuilder: Require metadata-set and entityid to be set in metadata.
http://code.google.com/p/simplesamlphp/source/detail?r=1947
Modified:
/trunk/lib/SimpleSAML/Metadata/SAMLBuilder.php
=======================================
--- /trunk/lib/SimpleSAML/Metadata/SAMLBuilder.php Fri Oct 16 05:45:30 2009
+++ /trunk/lib/SimpleSAML/Metadata/SAMLBuilder.php Wed Nov 4 05:52:30 2009
@@ -236,6 +236,8 @@
*/
public function addMetadataSP20($metadata) {
assert('is_array($metadata)');
+ assert('isset($metadata["entityid"])');
+ assert('isset($metadata["metadata-set"])');
$e = $this->createElement('SPSSODescriptor');
$e->setAttribute('protocolSupportEnumeration',
'urn:oasis:names:tc:SAML:2.0:protocol');
@@ -359,6 +361,8 @@
*/
public function addMetadataIdP20($metadata) {
assert('is_array($metadata)');
+ assert('isset($metadata["entityid"])');
+ assert('isset($metadata["metadata-set"])');
$e = $this->createElement('IDPSSODescriptor');
$e->setAttribute('protocolSupportEnumeration',
'urn:oasis:names:tc:SAML:2.0:protocol');
@@ -418,6 +422,8 @@
*/
public function addMetadataSP11($metadata) {
assert('is_array($metadata)');
+ assert('isset($metadata["entityid"])');
+ assert('isset($metadata["metadata-set"])');
$e = $this->createElement('SPSSODescriptor');
$e->setAttribute('protocolSupportEnumeration',
'urn:oasis:names:tc:SAML:1.1:protocol');
@@ -464,6 +470,8 @@
*/
public function addMetadataIdP11($metadata) {
assert('is_array($metadata)');
+ assert('isset($metadata["entityid"])');
+ assert('isset($metadata["metadata-set"])');
$e = $this->createElement('IDPSSODescriptor');
$e->setAttribute('protocolSupportEnumeration',
'urn:oasis:names:tc:SAML:1.1:protocol');
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en
-~----------~----~----~----~------~----~------~--~---