<div dir="ltr"><div>Hi,<br><br></div>Are you using <br><pre class="gmail-highlight"><code>keycloak.init({ onLoad: &#39;check-sso&#39; }) ? <br><br></code></pre><pre class="gmail-highlight"><code>Sebi<br><br></code></pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 29, 2016 at 4:01 PM, Gregor Jarisch <span dir="ltr">&lt;<a href="mailto:gregor@jarisch.net" target="_blank">gregor@jarisch.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi there,<br><br>we have a single page application using the JS adapter. Once the user is logged in and a page redirect occurs, the SPA loads, but immediately reloads once again when keycloak adapter authenticates.<br>Since the user was logged in before already, we would have assumed that no further page refresh has to be made. <br><br>Interestingly, when we manually pass on all the token values in the init method (for testing purposes), the page doesn&#39;t refresh a second time and the user is authenticated. As we would have expected it to be.<br><br>This might be just a misunderstanding of how this adapter is supposed to work, but from our understanding the purpose of the iframe and the set cookie is to make sure the user stays authenticated.<br>Thus, shouldn&#39;t the keycloak adapter &quot;store&quot; the tokens and use them on a page refresh if they are valid in order to authenticate without the need for an additional page refresh?<br><br>Would be nice if somebody can explain this mechanism a bit further and maybe even give a hint on what we are doing wrong here.. We are puzzled at the moment.<br><br>Thanks<span class="HOEnZb"><font color="#888888"><br><br>Gregor<br></font></span></div><br>______________________________<wbr>_________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">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/<wbr>mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>