Hi Everyone,
I’ve been working on implementing a User Storage SPI with the Import Implementation Strategy. So far, I’ve successfully set up a user federation, and I can log in using a user from the external database. When I log in, the user is created in Keycloak’s DB, and subsequent logins check against Keycloak’s DB instead of the external DB. Everything is working fine up to this point.
I have a question regarding the synchronization of data between the external DB and Keycloak’s DB. Specifically, when I update a user’s email address through Keycloak’s dashboard, I want this change to be reflected in my external database as well. To achieve this, I’ve overridden the UserDelegate
’s setEmail
method. However, it seems that the override is not being triggered for some reason.
Here’s my code for reference: code
Any insights or suggestions would be greatly appreciated!