mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-03 03:18:36 -06:00
update tests, forward failed basic auth to render correct error body
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -99,8 +99,11 @@ func AccountUUID(opts ...Option) func(next http.Handler) http.Handler {
|
||||
Iss: opt.OIDCIss,
|
||||
}
|
||||
} else {
|
||||
// we are still forwarding the request, the service is responsible for rendering the error
|
||||
// TODO or render a full blown ocs xml / json error response
|
||||
next.ServeHTTP(w, r)
|
||||
// tell client to reauthenticate
|
||||
w.WriteHeader(http.StatusUnauthorized)
|
||||
//w.WriteHeader(http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user