Skip to content

Commit 105e9f5

Browse files
author
Priyank Bagrecha
committed
#3273 Change warning message No 'Basic Authorization' header, send 401 and 'WWW-Authenticate Basic' to trace
Signed-off-by: Priyank Bagrecha <pbagrecha@roku.com>
1 parent 2ad8272 commit 105e9f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/opensearch/security/auth/BackendRegistry.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,10 @@ && isBlocked(((InetSocketAddress) request.getHttpChannel().getRemoteAddress()).g
282282

283283
if (authDomain.isChallenge() && httpAuthenticator.reRequestAuthentication(channel, null)) {
284284
auditLog.logFailedLogin("<NONE>", false, null, request);
285-
log.warn("No 'Authorization' header, send 401 and 'WWW-Authenticate Basic'");
285+
if (isTraceEnabled) {
286+
log.trace(
287+
"No 'Authorization' header, send 401 and 'WWW-Authenticate Basic'");
288+
}
286289
return false;
287290
} else {
288291
// no reRequest possible

0 commit comments

Comments
 (0)