[keycloak-user] run code at login

Matthew Broadhead matthew.broadhead at nbmlaw.co.uk
Tue May 8 06:01:28 EDT 2018


i am using TomEE 7.0.3.  i am trying to execute code when the user first 
authenticates in order to log the ip address and username.  i tried 
implementing @WebListener public class SessionListener implements 
HttpSessionListener
but the session is created before the redirect to the login system so 
KeycloakPrincipal<KeycloakSecurityContext> is not available at that point.


More information about the keycloak-user mailing list