We’re trying to make a Keycloak 21 event listener feed some data into the next ftl running but we’re unable to do it.
The event listener fires at the LOGIN_ERROR event add some data to the model.
We’ve tried to set some attributes in several objects that are available in the event listeners but the only one we are able to read in the ftl is the ClientBean, which does not seem to be a good choice, since it’s probably shared between several users at the same time. We’ve tried Session, User, which seemed the best options, but we get null when we use them in freemarker.
Does anybody know of an example of how to do this?
TIA,
Pedro Carvalho