[keycloak-dev] Access Query Parameter in FreeMarker Login Template - Keycloak 2.1.0

Bernhard Steindl steindl.bernhard94 at gmail.com
Sun Jul 9 18:06:01 EDT 2017


Hello,

I must access Query Parameters passed to my keycloak login theme.

Neither was I able to obtain them using 

RequestParameters.paramName nor
request.getParameter(paramName)
	
in the login FreeMarker template.

Everytime I access a query parameter using these methods I get an FreeMarker error

2017-07-06 13:32:07,917 ERROR [freemarker.runtime] (default task-12) Error executing FreeMarker template: 
freemarker.core.InvalidReferenceException: The following has evaluated to null or missing

I am using Keycloak 2.1.0 which includes a FreeMarker jar version 2.3.20.


Can anybody support me in this issue?
I need to use query params to dynamically display information on the login theme.

Kind Regards,
Bernhard


More information about the keycloak-dev mailing list