<div dir="ltr">It&#39;s standard OIDC stuff. The way it works is:<div><br></div><div>* user visits app (first page view)</div><div>* app is redirected to Keycloak login page</div><div>* user is redirected back to app page (second page view)</div><div><br></div><div>Further the javascript adapter assumes the app is a single-page app so it doesn&#39;t store the tokens so the above flow is repeated for each request even if the user is already authenticated. You can bypass that if you want by manually storing the tokens in html5 storage and init the javascript adapter with it (see the docs for that). Be aware that&#39;s a slight security risk as you&#39;re storing the tokens which could potentially be leaked.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 September 2016 at 23:08, Bruno Oliveira <span dir="ltr">&lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Erik, could you provide the steps to reproduce or some code?<br>
<div><div class="h5"><br>
On 2016-09-13, Eric Matte wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; We are using the Javascript Adapter from Keycloak for our client authentication.<br>
&gt; However, when accessing a webpage, we receive the information twice.<br>
&gt;<br>
&gt; Here are the request logs received from the client to the server:<br>
&gt;<br>
&gt; 127.0.0.1 - - [13/Sep/2016 10:23:10] &quot;GET /f/services HTTP/1.1&quot; 200 -<br>
&gt; 127.0.0.1 - - [13/Sep/2016 10:23:10] &quot;GET /f/services?prompt=none HTTP/1.1&quot; 200 -<br>
&gt;<br>
&gt; The client is calling a second GET request for a reason that I don&#39;t know. Can you explain?<br>
&gt;<br>
&gt; Thank you<br>
<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; keycloak-user mailing list<br>
&gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; <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>
<br>
<br>
--<br>
<br>
abstractj<br>
PGP: 0x84DC9914<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>