use the account.id as ocis userid, tests

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-10-27 14:33:51 +01:00
parent 8af7d0979e
commit 6f46e1bccb
5 changed files with 6 additions and 9 deletions
+1 -4
View File
@@ -99,11 +99,8 @@ 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 {