Skip to content
Snippets Groups Projects
Commit 2a3b5f8a authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Adding xml output and including name of aggregate.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@888 44740490-163a-0410-bde0-09ae8108e29a
parent 119c50b2
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,6 @@ $lang = array(
'text' => array (
'en' => 'text',
),
);
......
......@@ -17,6 +17,7 @@ if (count($this->data['sources']) === 0) {
echo('<li>');
echo('<a href="?id=' . $encId . '">' . $encName . '</a>');
echo(' <a href="?id=' . $encId . '&amp;mimetype=text/plain">[' . $this->t('{aggregator:dict:text}') . ']</a>');
echo(' <a href="?id=' . $encId . '&amp;mimetype=application/xml">[xml]</a>');
echo('</li>');
}
......
......@@ -61,8 +61,11 @@ foreach ($sources as $source) {
$xml = new DOMDocument();
$entitiesDescriptor = $xml->createElementNS('urn:oasis:names:tc:SAML:2.0:metadata', 'EntitiesDescriptor');
$entitiesDescriptor->setAttribute('Name', $id);
$xml->appendChild($entitiesDescriptor);
/* Build EntityDescriptor elements for them. */
foreach ($entities as $entity => $sets) {
......
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