[keycloak-dev] Support for passing custom attributes from authenticators to login pages

Thomas Darimont thomas.darimont at googlemail.com
Mon Apr 10 10:04:19 EDT 2017


Hello group,

are there any plans to support custom attributes to be passed from
authenticators to (login-) forms?

Concrete use-case is that I want to pass information
from a custom OTP authenticator down to the login-totp.ftl template.

Would be helpful if it were possible to pass custom attributes to the
create*Page(..) methods in org.keycloak.forms.login.LoginFormsProvider.

This would really ease customizations.

Other alternatives to pass data are:
- use some ThreadLocal storage within an Authenticator (set and clear) -
but this feels more like a hack
- custom page template and population logic in in a custom
FreeMarkerLoginFormsProvider (quite involved...)

Cheers,
Thomas


More information about the keycloak-dev mailing list