Revision: 1742
Author: olavmrk
Date: Thu Sep 3 03:37:34 2009
Log: saml_Auth_Source_SP: Add getMetadataURL()-function.
http://code.google.com/p/simplesamlphp/source/detail?r=1742
Modified:
/trunk/modules/saml/lib/Auth/Source/SP.php
=======================================
--- /trunk/modules/saml/lib/Auth/Source/SP.php Wed Aug 19 01:31:19 2009
+++ /trunk/modules/saml/lib/Auth/Source/SP.php Thu Sep 3 03:37:34 2009
@@ -51,7 +51,7 @@
if (array_key_exists('entityId', $config)) {
$config['entityid'] = $config['entityId'];
} else {
- $config['entityid'] =
SimpleSAML_Module::getModuleURL('saml/sp/metadata.php/' .
urlencode($this->authId));
+ $config['entityid'] = $this->getMetadataURL();
}
$this->metadata =
SimpleSAML_Configuration::loadFromArray($config, 'authsources[' .
var_export($this->authId, TRUE) . ']');
@@ -59,6 +59,17 @@
$this->idp = $this->metadata->getString('idp', NULL);
$this->discoURL = $this->metadata->getString('discoURL', NULL);
}
+
+
+ /**
+ * Retrieve the URL to the metadata of this SP.
+ *
+ * @return string The metadata URL.
+ */
+ public function getMetadataURL() {
+
+ return SimpleSAML_Module::getModuleURL('saml/sp/metadata.php/'
.
urlencode($this->authId));
+ }
/**
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---