Change order to connect API Before LDAP

Prevent double authentication with API Access token and ldaps server and also prevent temporary ban from ldap server when this one is enabled
This commit is contained in:
mogoa
2019-10-04 14:52:23 +02:00
committed by Frédéric Guillot
parent 219c933832
commit 7e558c1da8

View File

@@ -41,11 +41,11 @@ class AuthenticationProvider implements ServiceProviderInterface
$container['authenticationManager']->register(new ReverseProxyAuth($container));
}
$container['authenticationManager']->register(new ApiAccessTokenAuth($container));
if (LDAP_AUTH) {
$container['authenticationManager']->register(new LdapAuth($container));
}
$container['authenticationManager']->register(new ApiAccessTokenAuth($container));
}
$container['projectAccessMap'] = $this->getProjectAccessMap();
$container['applicationAccessMap'] = $this->getApplicationAccessMap();