<div dir="ltr"><div>I've spent some time in Firefox's debugger and found out that the redirect occurs right after the window.postMessage() is called in the checkLoginFrame function.<br><br></div><div>The demo project code seems to be in line with my code. Might try it's runtime behavior later.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 6, 2016 at 8:19 AM, Marek Posolda <span dir="ltr"><<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
<div>On 01/09/16 23:34, Andy Yar wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Hello,<br>
</div>
I've created a template of a Angular based app using
keycloak.js lib. After a successful login the app/page
periodically reloads itself. I guess it's because of the
iFrame session check being set to 5sec interval
(requesting url:
<base_url>/#state=<hash>&code=<wbr><hash>).<br>
</div>
</div>
</div>
</div>
</blockquote></span>
That's strange... IFrame is supposed to just check the cookie, not
to do any reload.<br>
<br>
Maybe take a look at our angular examples and see if you do
something differently? See
<a href="https://github.com/keycloak/keycloak/tree/master/examples/demo-template/angular-product-app" target="_blank">https://github.com/keycloak/<wbr>keycloak/tree/master/examples/<wbr>demo-template/angular-product-<wbr>app</a>
. Note the angular.bootstrap called after Keycloak authentication is
fully finished.<br>
<br>
Marek<br>
<blockquote type="cite"><span class="">
<div dir="ltr">
<div>
<div>
<div><br>
</div>
This happens in latest Firefox and Edge. Chrome seems to
handle these reloads quietly.<br>
<br>
</div>
Is this intended?<br>
<br>
</div>
Thanks<br>
</div>
<br>
<fieldset></fieldset>
<br>
</span><pre>______________________________<wbr>_________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>