<div dir="ltr">We don&#39;t replicate the session. It&#39;s a distributed cache so it&#39;s fetched internally from the correct node.<div><br></div><div>For refresh token maybe we could update the user session for a user that they need to be checked against the user changes? </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 December 2015 at 18:58, Bill Burke <span dir="ltr">&lt;<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 12/2/2015 12:54 PM, Bill Burke wrote:<br>
&gt;<br>
&gt;<br>
&gt; On 12/2/2015 12:46 PM, Stian Thorgersen wrote:<br>
&gt;&gt; Wonder if we could do something similar with code 2 token. Could we not<br>
&gt;&gt; set a cookie there as well? Then at most there would be two nodes for<br>
&gt;&gt; one user.<br>
&gt;&gt;<br>
&gt;&gt; Alternative is to update code 2 token so it doesn&#39;t require the user<br>
&gt;&gt; model. That would be more elegant. We could do that by making sure user<br>
&gt;&gt; sessions are updated when required if user model changes.<br>
&gt;&gt;<br>
&gt;<br>
&gt; You could optimistically create the token and store it within the client<br>
&gt; session.  But then your overhead is in replication?  Then again is<br>
&gt; replicating a few kilobytes that big of a deal?<br>
&gt;<br>
<br>
</span>Answering my own question...It probabbly isn&#39;t a big deal as you are<br>
already replicating the client session anyways.<br>
<br>
Doesn&#39;t help refresh token though.  Refresh token needs to verify the<br>
user is still enabled.<br>
<span class=""><br>
<br>
--<br>
Bill Burke<br>
JBoss, a division of Red Hat<br>
<a href="http://bill.burkecentral.com" rel="noreferrer" target="_blank">http://bill.burkecentral.com</a><br>
</span><span class="">_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
</span><a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
</blockquote></div><br></div>