Skip to content

Commit

Permalink
opensearch-project#3273 Change warning message No 'Basic Authorizatio…
Browse files Browse the repository at this point in the history
…n' header, send 401 and 'WWW-Authenticate Basic' to trace
  • Loading branch information
Priyank Bagrecha committed Sep 14, 2023
1 parent 2ad8272 commit a96cefd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,10 @@ && isBlocked(((InetSocketAddress) request.getHttpChannel().getRemoteAddress()).g

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

0 comments on commit a96cefd

Please sign in to comment.