Skip to content

Commit

Permalink
Changing logging type to give warning for basic auth with no creds (o…
Browse files Browse the repository at this point in the history
…pensearch-project#2347)

Signed-off-by: Abhi Kalra <[email protected]>
  • Loading branch information
abhivka7 authored Dec 21, 2022
1 parent 6c54ea8 commit a0a71da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public boolean authenticate(final RestRequest request, final RestChannel channel

if(authDomain.isChallenge() && httpAuthenticator.reRequestAuthentication(channel, null)) {
auditLog.logFailedLogin("<NONE>", false, null, request);
log.trace("No 'Authorization' header, send 401 and 'WWW-Authenticate Basic'");
log.warn("No 'Authorization' header, send 401 and 'WWW-Authenticate Basic'");
return false;
} else {
//no reRequest possible
Expand Down

0 comments on commit a0a71da

Please sign in to comment.