fix: HTTP Authentication challenge responds with 401 status
Signed-off-by: Andrew Azores <me@andrewazor.es>
This commit is contained in:
parent
e27921ee80
commit
d6d3435d3a
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue