Skip to content

Commit

Permalink
Merge pull request #990 from dbywalec/authenthication-of-federation-user
Browse files Browse the repository at this point in the history
Fix authentication failure warning log messages for FEDERATION_USER
  • Loading branch information
gitblit committed Jan 16, 2016
2 parents b180e50 + 5274e12 commit 1607b9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/gitblit/manager/AuthenticationManager.java
Expand Up @@ -466,6 +466,12 @@ public UserModel authenticate(String username, char[] password, String remoteIP)
return null;
}

if (username.equalsIgnoreCase(Constants.FEDERATION_USER)) {
// can not authenticate internal FEDERATION_USER at this point
// it must be routed to FederationManager
return null;
}

String usernameDecoded = StringUtils.decodeUsername(username);
String pw = new String(password);
if (StringUtils.isEmpty(pw)) {
Expand Down

0 comments on commit 1607b9f

Please sign in to comment.