Skip to content

athenacykes/keycloak-kafka-eventlistener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keycloak-kafka-eventlistener

Output Keycloak Events and Admin Events to a Kafka topic.

Based on Keycloak 15.0.2+ / RH-SSO 7.5.0+

How to use the plugin

  1. Build the plugin
mvn clean package
  1. Put target/keycloak-kafka-eventlistener-1.0.jar to $KEYCLOAK_HOME/providers

  2. Put kafka client and module.xml to $KEYCLOAK_HOME/modules/system/layers/keycloak/org/apache/kafka/clients/main

  3. Add the following line in section <dependency> of $KEYCLOAK_HOME/modules/system/layers/keycloak/org/keycloak/keycloak-services/main/module.xml:

<module name="org.apache.kafka.clients" services="import"/>
  1. Create $KEYCLOAK_HOME/standalone/configurations/kafka.properties with following content:
bootstrap.servers={KAFKA_HOST}:{PORT}
kafka.config.topic.name={KAFKA_TOPIC}
kafka.config.topic.name.admin={KAFKA_TOPIC_ADMIN}
  1. Restart keycloak

  2. On Events settings, select kafka-event-listener, select some event types, and save

About

Keycloak Event Listener for Kafka.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages