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

protectmetadata was not enforced for SP metadata.

This check was not ported to the saml2 module.
parent 499e21fe
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,9 @@ if (!array_key_exists('PATH_INFO', $_SERVER)) { ...@@ -5,6 +5,9 @@ if (!array_key_exists('PATH_INFO', $_SERVER)) {
} }
$config = SimpleSAML_Configuration::getInstance(); $config = SimpleSAML_Configuration::getInstance();
if ($config->getBoolean('admin.protectmetadata', false)) {
SimpleSAML_Utilities::requireAdmin();
}
$sourceId = substr($_SERVER['PATH_INFO'], 1); $sourceId = substr($_SERVER['PATH_INFO'], 1);
$source = SimpleSAML_Auth_Source::getById($sourceId); $source = SimpleSAML_Auth_Source::getById($sourceId);
if ($source === NULL) { if ($source === NULL) {
......
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