Commit dd878efc authored by Ad Schellevis's avatar Ad Schellevis

(mvc) don't expose api auth to consumers

parent 0d98f603
......@@ -66,7 +66,6 @@ class AuthenticationFactory
{
$servers = array();
$servers['Local Database'] = array("name" => "Local Database", "type" => "local");
$servers['Local API'] = array("name" => "Local API Database", "type" => "api");
$configObj = Config::getInstance()->object();
foreach ($configObj->system->children() as $key => $value) {
if ($key == 'authserver' && !empty($value->type) && !empty($value->name)) {
......@@ -90,6 +89,7 @@ class AuthenticationFactory
{
$localUserMap = array();
$servers = $this->listServers();
$servers['Local API'] = array("name" => "Local API Database", "type" => "api");
// create a new auth connector
if (isset($servers[$authserver]['type'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment