]> source.dussan.org Git - gitblit.git/commit
Fix authentication failure warning log messages for FEDERATION_USER 990/head
authorDariusz Bywalec <dariusz.bywalec@trapezegroup.pl>
Mon, 4 Jan 2016 10:32:58 +0000 (11:32 +0100)
committerDariusz Bywalec <dariusz.bywalec@trapezegroup.pl>
Mon, 4 Jan 2016 10:32:58 +0000 (11:32 +0100)
commit5274e12c7cc19451355082418f78004c4d97e263
tree965bdcad1bd24c5288cb25d1f8a0dc79bd0288c6
parent2539ceea0d47467d54cedd340afa6ede2909b2bd
Fix authentication failure warning log messages for FEDERATION_USER

The AuthenticationManager did not encounter for FEDERATION_USER and would unnecessarily
generate a lot of failure warning log messages, e.g:

Failed login attempt for $gitblit, invalid credentials from XXX.XX.XX.XX

A simple condition will prematurely return null bypassing the regular authentication path
and immediately make the authentication be routed via FederationManager.
src/main/java/com/gitblit/manager/AuthenticationManager.java