I think that in the future, the userSession will be always created
during login event (I am working on some refactoring, which will
introduce that). But deletion of user session can be either logout or
periodic cleanup or removal by admin. Hence those Keycloak events are
not 100% reliable.
Other (and probably better) possibility is to manually add some listener
to infinispan cache. You can do it in your own provider at the startup
time though.
Marek
On 21/04/17 01:20, Dmitry Telegin wrote:
Hi,
Is it possible for a Keycloak provider to track user session
creation/disposal/etc., for example, by subscribing to some events?
I've looked through different event types in Keycloak, but couldn't
find anything relevant to user session lifecycle.
If not possible ATM, do you think this is worth being added to mainline
Keycloak?
Thanks,
Dmitry
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user