NestJS Keycloak gRPC Integration

JSON →
library 0.2.0 ·javascript
verified Jun 7, 2026

A NestJS gRPC wrapper for Keycloak that provides guards (`ProtectedGuard`, `RoleGuard`) and decorators (`@Protected`, `@Role`) for authenticating and authorizing gRPC calls via Keycloak. Current version 0.2.0, requires `@grpc/grpc-js`, NestJS 8, and `keycloak-connect` between 17 and 18. Configurable via environment variables. Essentially a bridge between NestJS gRPC services and Keycloak's role-based access control, with automatic token validation and permission checking. Limited documentation and active development; not widely adopted.