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

SimpleSAML_Auth_Source: Use getArray() instead of getValue().

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1675 44740490-163a-0410-bde0-09ae8108e29a
parent cfd1741c
No related branches found
No related tags found
No related merge requests found
......@@ -165,15 +165,11 @@ abstract class SimpleSAML_Auth_Source {
/* For now - load and parse config file. */
$config = SimpleSAML_Configuration::getConfig('authsources.php');
$authConfig = $config->getValue($authId, NULL);
$authConfig = $config->getArray($authId, NULL);
if ($authConfig === NULL) {
return NULL;
}
if (!is_array($authConfig)) {
throw new Exception('Invalid configuration for authentication source \'' . $authId . '\'.');
}
return self::parseAuthSource($authId, $authConfig);
}
......
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