Skip to content
Snippets Groups Projects
Commit 9be9e87b authored by Olav Morken's avatar Olav Morken
Browse files

saml: Add support for signing SP metadata.

Thanks to Gyula Szabó for providing this patch.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2715 44740490-163a-0410-bde0-09ae8108e29a
parent 81656147
No related branches found
No related tags found
No related merge requests found
...@@ -210,6 +210,9 @@ if (count($keys) === 1) { ...@@ -210,6 +210,9 @@ if (count($keys) === 1) {
$metaArray20['keys'] = $keys; $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') { if (array_key_exists('output', $_REQUEST) && $_REQUEST['output'] == 'xhtml') {
$t = new SimpleSAML_XHTML_Template($config, 'metadata.php', 'admin'); $t = new SimpleSAML_XHTML_Template($config, 'metadata.php', 'admin');
......
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