fix: HTTP Authentication challenge responds with 401 status

Signed-off-by: Andrew Azores <me@andrewazor.es>
This commit is contained in:
Andrew Azores 2025-12-12 17:05:24 -05:00
parent e27921ee80
commit d6d3435d3a
No known key found for this signature in database
GPG Key ID: 90E9471137D22C73
1 changed files with 1 additions and 1 deletions

View File

@ -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: