Skip to content

Commit

Permalink
Log access control error (netbirdio#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon authored Nov 9, 2023
1 parent 9e10a59 commit 72bc083
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions management/server/http/middleware/access_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 72bc083

Please sign in to comment.