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
Branches
Tags
No related merge requests found
...@@ -47,4 +47,5 @@ $xml = $metaBuilder->getEntityDescriptorText(); ...@@ -47,4 +47,5 @@ $xml = $metaBuilder->getEntityDescriptorText();
$xml = Metadata\Signer::sign($xml, $spconfig->toArray(), 'SAML 2 SP'); $xml = Metadata\Signer::sign($xml, $spconfig->toArray(), 'SAML 2 SP');
header('Content-Type: application/samlmetadata+xml'); header('Content-Type: application/samlmetadata+xml');
header('Content-Disposition: attachment; filename="' . basename($sourceId) . '.xml"');
echo($xml); echo($xml);
...@@ -36,6 +36,7 @@ try { ...@@ -36,6 +36,7 @@ try {
$metaxml = \SimpleSAML\Metadata\Signer::sign($metaxml, $metaArray, 'SAML 2 IdP'); $metaxml = \SimpleSAML\Metadata\Signer::sign($metaxml, $metaArray, 'SAML 2 IdP');
header('Content-Type: application/samlmetadata+xml'); header('Content-Type: application/samlmetadata+xml');
header('Content-Disposition: attachment; filename="idp-metadata.xml"');
echo $metaxml; echo $metaxml;
exit(0); exit(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment