Skip to content

ruanfi/keycloak-kafka-event-listener

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keycloak Event Listener for Kafka

This demo project will create all infrastructure to show SPI event listener for Keycloak and Apache Kafka

Prerequisite

Building the Containers

To build the containers:

> cd keycloak-provider
> ./gradlew clean assemble
> cd ..
> docker-compose build

Start example

You can run the project with the following command

> docker-compose up

Now open the keycloak UI at http://localhost:8080

login with:

username: admin
password: admin

Go to the Events left menu item, and navigate to Config. Under Event Listeners, add keycloak-demo and save.

Start Kafka Tool, create new connection:

  • Zookeeper host: localhost
  • Zookeeper port: 2181
  • Advanced/Bootstrap server: localhost:9092

Topic to watch is: keycloak.userssout

Logout and log back in. Watch the console for changes and Kafka Tool to see events.

About

Event listener provider for Keycloak that writes to Kafka

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 91.1%
  • Shell 6.2%
  • Dockerfile 2.7%