Search code examples
freemarkerkeycloakkeycloak-services

Keycloak pass data from one custom authentication to another


I have created three custom authenticators for register flow each validate separate pages(ftl file) data. How to pass a data from one authenticator to another?

If I use session.setAttribute() that value will be removed if user refresh the page. How to persist previous page value to continue a flow?


Solution

  • We can use context.getAuthenticationSession().setAuthNote(key,value) to persist a value