Fix code style issues to conform to project standards.
@@ -74,10 +74,11 @@ public class AuthenticationProviderService {
HttpServletRequest request = credentials.getRequest();
if (request != null) {
String username = request.getRemoteUser();
- if(username == null) {
+ if(username == null)
username = request.getHeader(confService.getHttpAuthHeader());
- }
+
if (username != null) {
+ logger.debug("Authenticating with user {}", username);
AuthenticatedUser authenticatedUser = authenticatedUserProvider.get();
authenticatedUser.init(username, credentials);
return authenticatedUser;
