Revision: 2163
Author: olavmrk
Date: Mon Feb 8 01:13:08 2010
Log: SAMLBuilder: Add support for attributes.NameFormat.
http://code.google.com/p/simplesamlphp/source/detail?r=2163
Modified:
/trunk/lib/SimpleSAML/Metadata/SAMLBuilder.php
=======================================
--- /trunk/lib/SimpleSAML/Metadata/SAMLBuilder.php Mon Feb 8 01:12:50 2010
+++ /trunk/lib/SimpleSAML/Metadata/SAMLBuilder.php Mon Feb 8 01:13:08 2010
@@ -360,10 +360,14 @@
$attributeconsumer->appendChild($t);
}
+ $nameFormat = $metadata->getString('attributes.NameFormat',
SAML2_Const::NAMEFORMAT_UNSPECIFIED);
foreach ($attributes as $attribute) {
$t = $this->createElement('RequestedAttribute');
$t->setAttribute('Name', $attribute);
+ if ($nameFormat !==
SAML2_Const::NAMEFORMAT_UNSPECIFIED) {
+ $t->setAttribute('NameFormat',
$nameFormat);
+ }
$attributeconsumer->appendChild($t);
}
--
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.