From a3248657738c955278bc60c737ae563d4e3a9e31 Mon Sep 17 00:00:00 2001 From: Jaime Frastai Date: Tue, 2 Jan 2024 07:08:40 -0300 Subject: [PATCH] IdP metadata download --- www/saml2/idp/metadata.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/saml2/idp/metadata.php b/www/saml2/idp/metadata.php index cf24b788f1..9c373a7117 100644 --- a/www/saml2/idp/metadata.php +++ b/www/saml2/idp/metadata.php @@ -182,7 +182,8 @@ } else { - header('Content-Type: application/xml'); + header('Content-Type: application/samlmetadata+xml'); + header('Content-Disposition: attachment; filename=' . $idpmeta->getString('host') . '-IdP.xml'); echo $metaxml; exit(0);