Skip to content

Commit

Permalink
Tweak token err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch-- committed Nov 18, 2023
1 parent 88c67e8 commit 13178f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/transport/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func permissionsUnaryServerInterceptor() grpc.UnaryServerInterceptor {
}
}
mtlsLog.Warnf("Permission denied for %s attempting to access %s", operator.Name, info.FullMethod)
return nil, status.Error(codes.PermissionDenied, "Permission denied")
return nil, status.Error(codes.PermissionDenied, "Token has insufficient permissions")
}
}

Expand All @@ -215,7 +215,7 @@ func permissionsStreamServerInterceptor() grpc.StreamServerInterceptor {
}
}
mtlsLog.Warnf("Permission denied for %s attempting to access %s", operator.Name, info.FullMethod)
return status.Error(codes.PermissionDenied, "Permission denied")
return status.Error(codes.PermissionDenied, "Token has insufficient permissions")
}
}

Expand Down

0 comments on commit 13178f5

Please sign in to comment.