Skip to content
Snippets Groups Projects
Commit 4b787cf3 authored by Olav Morken's avatar Olav Morken
Browse files

saml: Add html-view of metadata.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1744 44740490-163a-0410-bde0-09ae8108e29a
parent 3d8e55ef
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,26 @@ $metaBuilder->addContact('technical', array( ...@@ -56,6 +56,26 @@ $metaBuilder->addContact('technical', array(
$xml = $metaBuilder->getEntityDescriptorText(); $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);
}
?> ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment