[keycloak-user] Pre-delete event (again)

Marek Posolda mposolda at redhat.com
Tue Jan 23 03:42:21 EST 2018


Yes, I see the pre-delete events can be useful. For example Infinispan 
has that feature. The advantage is also that pre-task event can throw 
the exception to force stop the task itself, which may be also useful 
for some usecases.

We can add new field, something like "boolean pre" to the AdminEvent and 
implement the event (at least for some admin endpoints).

Feel free to create JIRA for this.

Marek

On 22/01/18 14:25, Hammarberg, Daniel wrote:
> Hello all,
>
> We are using Keycloak’s event mechanism to listen to create/update/delete events in Keycloak and pass them on to an MQ bus that is consumed by Siebel. Now, we have stumbled upon the problem described in the post below, namely that the delete event is passed after the user is deleted, making it impossible to read the user’s attributes from KC.
>
> The only thing that got fixed in the referenced bug report was that email was added to the delete event headers, which is not enough for us: The integration we have with Siebel is requiring the Siebel ID, which we have as an attribute on the user.
>
> My question is: Is it in any way possible to hook into the Keycloak delete event before the user is deleted or to read user attributes after receiving the delete event?
>
> Regards
> /Daniel
>
>
> The post I reference to above is:
> http://lists.jboss.org/pipermail/keycloak-user/2016-June/006626.html
>
> ________________________________
>
> Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini Sverige AB, a company registered in Sweden (number 556092-3053) whose registered office is at Gustavslundsvägen 131 Box 825 – S-161 24 Bromma.
> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user




More information about the keycloak-user mailing list