[keycloak-user] User Role(s) in Event

vrinda nayak vrinda.nayak at j4care.com
Mon Mar 5 07:28:02 EST 2018


Hello All,

For our dcm4che archive, we use Keycloak as an Authentification layer. We
have built a custom Dcm4cheEventListenerProvider which implements
Keycloak's EventListenerProvider to listen to the LOGIN and LOGOUT events.
The Event class does not have roles of a user in the details. Based on
role(s) of a user, we have to emit specific audit messages.

Can someone please advise how we can extract the role(s) of a user when
events are being listened?

Thanks in advance.

Best Regards
Vrinda Nayak


More information about the keycloak-user mailing list