Revision: 1744
Author: olavmrk
Date: Thu Sep 3 03:37:53 2009
Log: saml: Add html-view of metadata.
http://code.google.com/p/simplesamlphp/source/detail?r=1744
Modified:
/trunk/modules/saml/www/sp/metadata.php
=======================================
--- /trunk/modules/saml/www/sp/metadata.php Thu Sep 3 03:37:43 2009
+++ /trunk/modules/saml/www/sp/metadata.php Thu Sep 3 03:37:53 2009
@@ -56,6 +56,26 @@
$xml = $metaBuilder->getEntityDescriptorText();
-echo($xml);
+if (array_key_exists('output', $_REQUEST) && $_REQUEST['output']
== 'xhtml') {
+
+ $t = new SimpleSAML_XHTML_Template($config, 'metadata.php', 'admin');
+
+ $t->data['header'] = 'saml20-sp';
+ $t->data['metadata'] = htmlspecialchars($xml);
+ $t->data['metadataflat'] = NULL;
+ $t->data['metaurl'] = $source->getMetadataURL();
+
+ $t->data['idpsend'] = array();
+ $t->data['sentok'] = FALSE;
+ $t->data['adminok'] = FALSE;
+ $t->data['adminlogin'] = NULL;
+
+ $t->data['techemail'] = $config->getString('technicalcontact_email',
NULL);
+
+ $t->show();
+} else {
+ header('Content-Type: application/samlmetadata+xml');
+ echo($xml);
+}
?>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---