Skip to content

Commit

Permalink
added auth failure log for basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-landiak committed Jun 5, 2024
1 parent 8727876 commit 9afe7a2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public AuthResponse authenticate(AuthContext authContext) throws AuthenticationE
}
MqttClientCredentials basicCredentials = authWithBasicCredentials(authContext.getClientId(), authContext.getUsername(), authContext.getPasswordBytes());
if (basicCredentials == null) {
log.error("Failed to authenticate client with Basic credentials matching clientId: [{}] username: [{}]", authContext.getClientId(), authContext.getUsername());
return new AuthResponse(false, null, null);
}
if (log.isTraceEnabled()) {
Expand Down

0 comments on commit 9afe7a2

Please sign in to comment.