Repository navigation
Keycloak RabbitMQ/AMQP Listener SPI #14028
Unanswered
raduromaniuc
asked this question in
Q&A
Replies: 1 comment
|
You can create consumer by your self that will work with keycloak admin api. Just for example you can use golang with ready to use package for keycloak and amqp (rabbitmq) package. It requires near 100 lines of code and can be flexible for your needs. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
Can Keycloak listen to events generated by a trusted RabbitMQ/AMQP broker?
In another words, it would be very helpful if Keycloak could act like an AMQP subscriber/consumer, e.g. listening to event X and modifying its users' attributes based on the event information.
I have found the complement of this feature request:
https://github.com/aznamier/keycloak-event-listener-rabbitmq
But this makes Keycloak a publisher instead of a consumer.
Could this be possible?
Looking at the Keycloak documentation, there are a number of Providers listed, but none seems to help for this use-case. Any point in the right direction would be greatly appreciated
Thank you
Discussion
No response
Motivation
Write now, we keep information in Keycloak about users as attributes, which are also present in tokens. These attributes sometimes change based on a RabbitMQ event. One event can change 100s of users' attributes: the current keycloak-admin API does not support bulk user updates, meaning we have to make lots of requests (lots of network overhead).
If instead Keycloak could directly listen to the AMQP event, we could directly modify the users' attributes, with minimal overhead.
But maybe there is too much of a security issue?
Thank you
Details
No response
All reactions