Skip to content

Commit d7d8472

Browse files
opensearch-trigger-bot[bot]github-actions[bot]Priyank Bagrecha
authored
[Backport 2.x] Change log message from warning to trace on WWW-Authenticate challenge (#3446)
Backport a41638b from #3364. Signed-off-by: Priyank Bagrecha <pbagrecha@roku.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Priyank Bagrecha <pbagrecha@roku.com>
1 parent d995daf commit d7d8472

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ && isBlocked(((InetSocketAddress) request.getHttpChannel().getRemoteAddress()).g
281281

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

0 commit comments

Comments
 (0)