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) (opensearch-project#2364)

Signed-off-by: Abhi Kalra <[email protected]>
(cherry picked from commit a0a71da)

Co-authored-by: Abhi Kalra <[email protected]>
Co-authored-by: Craig Perkins <[email protected]>
  • Loading branch information
3 people authored Dec 22, 2022
1 parent 8ab03bc commit ebd1d53
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 ebd1d53

Please sign in to comment.