[keycloak-user] How do I set session variable upon first API hit?

Stian Thorgersen sthorger at redhat.com
Thu Feb 11 03:24:39 EST 2016


Assuming you're talking about an JEE application, why not just use a
servlet filter? Make it take a peek in the http session to check if the
variables are set, if not load from database and add them.

On 11 February 2016 at 08:38, Renann Prado <darkness.renann at gmail.com>
wrote:

> Basically I have some session variables that should be set upon first hit
> in the API (using bearer token). The requirement is that session variables
> will be dynamically loaded from the database and put into the http session
> before I actually process the request, so I can use the variables to
> process it.
>
> Thanks
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160211/e93d363a/attachment.html 


More information about the keycloak-user mailing list