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@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user