From 7e558c1da8729f0c3634314826f7b962ac8855e6 Mon Sep 17 00:00:00 2001 From: mogoa <21876350+mogoa@users.noreply.github.com> Date: Fri, 4 Oct 2019 14:52:23 +0200 Subject: [PATCH] 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 --- app/ServiceProvider/AuthenticationProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/ServiceProvider/AuthenticationProvider.php b/app/ServiceProvider/AuthenticationProvider.php index 066f45e53..0b55877d2 100644 --- a/app/ServiceProvider/AuthenticationProvider.php +++ b/app/ServiceProvider/AuthenticationProvider.php @@ -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();