Revision: 2010
Author: olavmrk
Date: Thu Nov 26 01:18:16 2009
Log: saml: Use the new format for endpoints in bindings.
http://code.google.com/p/simplesamlphp/source/detail?r=2010
Modified:
/trunk/modules/saml/www/sp/metadata.php
=======================================
--- /trunk/modules/saml/www/sp/metadata.php Mon Nov 23 05:58:56 2009
+++ /trunk/modules/saml/www/sp/metadata.php Thu Nov 26 01:18:16 2009
@@ -19,24 +19,49 @@
$metaArray11 = array(
'metadata-set' => 'shib13-sp-remote',
'entityid' => $entityId,
- 'AssertionConsumerService' =>
SimpleSAML_Module::getModuleURL('saml/sp/saml1-acs.php/' . $sourceId),
+ 'AssertionConsumerService' => array(
+ array(
+ 'index' => 0,
+ 'Binding' =>
'urn:oasis:names:tc:SAML:1.0:profiles:browser-post',
+ 'Location' =>
SimpleSAML_Module::getModuleURL('saml/sp/saml1-acs.php/' . $sourceId),
+ ),
+ ),
);
$spconfig = $source->getMetadata();
if ($spconfig->getBoolean('saml11.binding.artifact.enable', FALSE)) {
- $metaArray11['AssertionConsumerService.artifact'] =
SimpleSAML_Module::getModuleURL('saml/sp/saml1-acs.php/' .
$sourceId . '/artifact');
+ $metaArray11['AssertionConsumerService'][] = array(
+ 'index' => 1,
+ 'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:artifact-01',
+ 'Location' =>
SimpleSAML_Module::getModuleURL('saml/sp/saml1-acs.php/' .
$sourceId . '/artifact'),
+ );
}
$metaArray20 = array(
'metadata-set' => 'saml20-sp-remote',
'entityid' => $entityId,
- 'AssertionConsumerService' =>
SimpleSAML_Module::getModuleURL('saml/sp/saml2-acs.php/' . $sourceId),
- 'SingleLogoutService' =>
SimpleSAML_Module::getModuleURL('saml/sp/saml2-logout.php/' . $sourceId),
+ 'AssertionConsumerService' => array(
+ array(
+ 'index' => 0,
+ 'Binding' => SAML2_Const::BINDING_HTTP_POST,
+ 'Location' =>
SimpleSAML_Module::getModuleURL('saml/sp/saml2-acs.php/' . $sourceId),
+ ),
+ ),
+ 'SingleLogoutService' => array(
+ array(
+ 'Binding' => SAML2_Const::BINDING_HTTP_REDIRECT,
+ 'Location' =>
SimpleSAML_Module::getModuleURL('saml/sp/saml2-logout.php/' . $sourceId),
+ ),
+ ),
);
-
+
if ($spconfig->getBoolean('saml20.binding.artifact.enable', FALSE)) {
- $metaArray20['AssertionConsumerService.artifact'] =
SimpleSAML_Module::getModuleURL('saml/sp/saml2-acs.php/' . $sourceId);
+ $metaArray20['AssertionConsumerService'][] = array(
+ 'index' => 1,
+ 'Binding' =>
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact',
+ 'Location' =>
SimpleSAML_Module::getModuleURL('saml/sp/saml2-acs.php/' .
$sourceId),
+ );
}
$certInfo = SimpleSAML_Utilities::loadPublicKey($spconfig->toArray());
--
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.