keycloak-connect-graphql

JSON →
library 0.7.0 ·javascript
verified Jun 7, 2026

A comprehensive solution for adding Keycloak authentication and authorization to Express-based GraphQL servers. Version 0.7.0 works with graphql ^0.12.0 to ^15.0.0 and keycloak-connect >=9.0.0. It provides auth at the GraphQL layer via declarative `@auth`, `@hasRole`, and `@hasPermission` directives (Apollo Server) or resolver middleware, with support for subscriptions and token/user info in context. Maintained by AeroGear, it differs from alternatives by focusing solely on Keycloak integration with Express/GraphQL.