From 9be9e87bb1005fb8df44119b8bcb6883182afdb9 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Fri, 14 Jan 2011 08:21:46 +0000 Subject: [PATCH] saml: Add support for signing SP metadata. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Gyula SzabĂł for providing this patch. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2715 44740490-163a-0410-bde0-09ae8108e29a --- modules/saml/www/sp/metadata.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/saml/www/sp/metadata.php b/modules/saml/www/sp/metadata.php index 3729d4c7b..1f0d31bc3 100644 --- a/modules/saml/www/sp/metadata.php +++ b/modules/saml/www/sp/metadata.php @@ -210,6 +210,9 @@ if (count($keys) === 1) { $metaArray20['keys'] = $keys; } +/* Sign the metadata if enabled. */ +$xml = SimpleSAML_Metadata_Signer::sign($xml, $sp, 'SAML 2 SP'); + if (array_key_exists('output', $_REQUEST) && $_REQUEST['output'] == 'xhtml') { $t = new SimpleSAML_XHTML_Template($config, 'metadata.php', 'admin'); -- GitLab