<div class="gmail_quote">On Feb 11, 2016 10:03, "Renann Prado" <<a href="mailto:prado.renann@gmail.com">prado.renann@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Yes, it is a JEE application and I am using standard adapter.<br>
I thought about creating a servlet filter, but is this the right approach to take?</p>
<p dir="ltr">Thanks</p>
<div class="gmail_quote">On Feb 11, 2016 06:24, "Stian Thorgersen" <<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.</div><div class="gmail_extra"><br><div class="gmail_quote">On 11 February 2016 at 08:38, Renann Prado <span dir="ltr"><<a href="mailto:darkness.renann@gmail.com" target="_blank">darkness.renann@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">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.</p>
<p dir="ltr">Thanks</p>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>
</blockquote></div>
</blockquote></div>