Hello,
during development the need for a 'atleast once delivery' mechanism for admin events came up,
because the current behavior of Keycloak permits the following scenario:
- User creation is triggered via Admin API
- User is persisted in the database
- AdminEventBuilder fails when trying to call onEvent()
- Admin Event doesn't exist although the user is persisted
The context is that there are third party applications, which synchronize with the state users in Keycloak
through admin events. The actual event delivery is done through a custom SPI in our case.
Our suggestion would be to include a retry mechanism, that could guarantee the event delivery.
Of course users should also be able to turn it on / off in the settings.
Before suggesting implementation details, we would like to know if there is any interest in this contribution ?
Mit freundlichen Grüßen / Best regards
Artur Baltabayev
Bosch IoT Permissions - Product Area User Management (IOC/PAU-PM)
Bosch.IO GmbH | Ziegelei 7 | 88090 Immenstaad |
GERMANY | www.bosch.io
Tel. +49 7545 202-497 | Fax +49 7545 202-301 |
Artur.Ba...@bosch.io
Registered Office: Berlin, Registration Court: Amtsgericht Charlottenburg; HRB 148411 B
Chairman of the Supervisory Board: Dr.-Ing. Thorsten Lücke; Managing Directors: Dr. Stefan Ferber, Dr. Aleksandar Mitrovic, Yvonne Reckling
--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/60dc15f0beac4d5dba7dee7c27042e37%40bosch.io.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/CAO1UCizZnt4XVfbAJpmR%2BULF%3DiCuQMpa1_JFQ7VWgH3ChqhNSA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/CAK-7U1h7Yo-nJV8_YJ7w0sXOVZvya199bRibaX1G1skn3LgM3A%40mail.gmail.com.
Hello,
Thanks for all the answers. We found out, that the current logic does not trigger a transaction rollback if the event store (for any reason) is not able to persist
the event. This is due to a checked exception in the AdminEventBuilder class. So technically the events are not guaranteed.
Mit freundlichen Grüßen / Best regards
Artur Baltabayev
Bosch IoT Permissions - Product Area User Management (IOC/PAU-PM)
Bosch.IO GmbH | Ziegelei 7 | 88090 Immenstaad |
GERMANY | www.bosch.io
Tel. +49 7545 202-497 | Fax +49 7545 202-301 |
Artur.Ba...@bosch.io
Registered Office: Berlin, Registration Court: Amtsgericht Charlottenburg; HRB 148411 B
Chairman of the Supervisory Board: Dr.-Ing. Thorsten Lücke; Managing Directors: Dr. Stefan Ferber, Dr. Aleksandar Mitrovic, Yvonne Reckling