<div dir="ltr">The easy fix is to bootstrap Angular after Keycloak has been initialized. Take a look at:<div><a href="https://github.com/keycloak/keycloak/blob/master/examples/demo-template/angular-product-app/src/main/webapp/js/app.js#L23">https://github.com/keycloak/keycloak/blob/master/examples/demo-template/angular-product-app/src/main/webapp/js/app.js#L23</a><br></div><div><br></div><div>It&#39;s not ideal, but otherwise Angular replaces the url after Keycloak strips off the code query param.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 January 2016 at 12:56, Stuart Jacobs <span dir="ltr">&lt;<a href="mailto:stuart.jacobs@symbiotics.co.za" target="_blank">stuart.jacobs@symbiotics.co.za</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Good Day,<div><br></div><div>I currently have a angular application that uses $urlRouterProvider for it&#39;s routing, I can not get the application from performing a infinite loop on the landing page.</div><div><br></div><div>Has anyone experienced this with $urlRouterProvider and is there a solution to the problem?<br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br>  Regards,<br></div>  Stuart Jacobs</div><div dir="ltr"><br></div><div dir="ltr"><br><br><br></div></div></div></div></div></div></div></div></div></div></div>
</div></div>

<br>
<img height="56" width="200"><br><br><a href="http://www.symbiotics.co.za" target="_blank">www.symbiotics.co.za</a><br>********************************************************************************<br>This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution of or taking any action based on this information is prohibited. <br><br>Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or for its effect on any electronic device of the recipient. <br><br>********************************************************************************<br>_______________________________________________<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/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>