Log access control error (#1299)

This commit is contained in:
Maycon Santos
2023-11-09 17:15:59 +01:00
committed by GitHub
parent 89e8540531
commit a40261ff7e

View File

@@ -41,6 +41,7 @@ func (a *AccessControl) Handler(h http.Handler) http.Handler {
user, err := a.getUser(claims) user, err := a.getUser(claims)
if err != nil { if err != nil {
log.Errorf("failed to get user from claims: %s", err)
util.WriteError(status.Errorf(status.Unauthorized, "invalid JWT"), w) util.WriteError(status.Errorf(status.Unauthorized, "invalid JWT"), w)
return return
} }