SnuK87 / keycloak-kafka

Keycloak module to produce events to kafka
Apache License 2.0
98 stars 37 forks source link

AVRO events #46

Open ttimot24 opened 1 month ago

ttimot24 commented 1 month ago

Is there a way to configure this SPI to produce AVRO events into the topic?

ttimot24 commented 1 month ago

@SnuK87 I just found out that some other modifications also needed. First of all there is a org.apache.kafka.common.serialization.Serializer which can be implemented instead explicitly call object mapper and publish events as a string.

Furthermore optionalProperties does not hold any value since the ProducerConfig initialized later. Because of this AVRO serializer class can not be configured from config.

I'm going to create some pull requests in the following days. If you don't have time for this project I would be glad to become the maintainer of this repo, since I work with Kafka and Keycloak all the time.

I recommend to delete 1.2.0 release and release again after I fixed the optionalProperties.

Anyway thank you so much for this SPI. It is really needed out there.