From d6d3435d3a4069ca248f8324644181b936ea1567 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Fri, 12 Dec 2025 17:05:24 -0500 Subject: [PATCH] fix: HTTP Authentication challenge responds with 401 status Signed-off-by: Andrew Azores --- oauthproxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauthproxy.go b/oauthproxy.go index c6db18a7..3ca99d75 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -1038,7 +1038,7 @@ func (p *OAuthProxy) Proxy(rw http.ResponseWriter, req *http.Request) { // the user did not explicitly start the login flow p.doOAuthStart(rw, req, nil) } else { - p.SignInPage(rw, req, http.StatusForbidden) + p.SignInPage(rw, req, http.StatusUnauthorized) } case ErrAccessDenied: