mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-17 15:28:14 +02:00
Log access control error (#1299)
This commit is contained in:
parent
89e8540531
commit
a40261ff7e
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user