in src/main/java/com/googlesource/gerrit/plugins/gitblit/auth/GerritToGitBlitUserService.java [104:122]
public UserModel authenticateBasicAuth(String username, String password) {
if (Strings.isNullOrEmpty(username) || password == null || password.length() <= 0) {
log.warn("Authentication failed: no username or password specified");
return null;
}
AuthRequest who = AuthRequest.forUser(username);
who.setPassword(new String(password));
try {
AuthResult authResp = accountManager.authenticate(who);
webSession.get().login(authResp, false);
} catch (Exception e) {
log.warn("Authentication failed for '" + username + "'", e);
return null;
}
return new GerritToGitBlitUserModel(username, userProvider, permissionBackend);
}