[keycloak-user] Accessing RelayState in login.ftl?
Bill Burke
bburke at redhat.com
Mon Nov 16 09:19:41 EST 2015
Relay state is stored in the ClientSessionModel:
clientSession.getNote("RelayState");
I don't think ClientSessionModel is visible from login.ftl. You'll have
to modify your Authenticator to store a form attribute.
On 11/16/2015 9:10 AM, Jeff Macomber wrote:
> Hi,
>
> Is it possible to access the Saml RelayState information in the
> login.ftl? I would like to pass forward information to allow
> pre-filling fields in login.ftl (I have customized the login to add more
> than just user/pass). Since SAML is redirect based query parameters
> will not work and it seems RelayState might be the correct approach here
> but i cant figure out how i would get at it in the login.ftl. IF
> RelayState is not the correct mechanism is there another approach for
> passing info from the client to the login form?
>
> Thanks
> Jeff
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
More information about the keycloak-user
mailing list