Announcing keycloak-graphql -- A GraphQL API for Keycloak

Hello Keycloak aficionados,

I’d like to announce a new open source project I’ve started called: graphql-keycloak. This is a GraphQL version of the Keycloak Admin REST API. The idea for this project came to me after a few years of building a user management system based on data stored in our Keycloak server. I found it difficult to query this data in a performant way using the REST API and so I thought a GraphQL implementation might solve some of the problems I encountered.

I still have some work to do before I open up to pull requests, but please feel free to check it out and kick the tires. As is mentioned in the README, keycloak-graphql is in its formative stage and should not be used in production at this time. I’m making it public “early” for a couple of reasons:

  • I’d like to get some feedback now on how you view the usefulness of this project.
  • I’ve integrated a WebSocket server to support GraphQL subscriptions using Vert.x. However, I’m looking for a better way to integrate WebSockets into Keycloak. Any suggestions in this area would be appreciated.
  • As this is my first open source project, I’d like your feedback on the repo in general: layout, README, code structure, build, etc.

Thank you all in advance for your constructive feedback.

1 Like

This is a super initiative. Retrieving complex data through the default REST API is a nightmare.
Also, being able to register for events is super convenient. I didn’t want to deploy a dedicated MQ or Kafka only to transfer security events to another system.

I’ll give that a try and give few feedbacks

Thanks. I still have a few problems to solve to make subscriptions on events real.