Skip to content
Snippets Groups Projects
Commit efcca917 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

When downloading metadata, add a .xml extension


Closes: #1510

Co-Authored-By: default avatarBart Langelaan <langelaanbart@gmail.com>
parent f3929acb
No related branches found
No related tags found
No related merge requests found
......@@ -47,4 +47,5 @@ $xml = $metaBuilder->getEntityDescriptorText();
$xml = Metadata\Signer::sign($xml, $spconfig->toArray(), 'SAML 2 SP');
header('Content-Type: application/samlmetadata+xml');
header('Content-Disposition: attachment; filename="' . basename($sourceId) . '.xml"');
echo($xml);
......@@ -36,6 +36,7 @@ try {
$metaxml = \SimpleSAML\Metadata\Signer::sign($metaxml, $metaArray, 'SAML 2 IdP');
header('Content-Type: application/samlmetadata+xml');
header('Content-Disposition: attachment; filename="idp-metadata.xml"');
echo $metaxml;
exit(0);
......
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