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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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