<div dir="ltr">That will work.  Thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 7, 2015 at 1:05 PM, Stian Thorgersen <span dir="ltr">&lt;<a href="mailto:stian@redhat.com" target="_blank">stian@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">In that case you&#39;ve got a problem. Keycloak.js strips off the code and redirect_fragment query params.<br>
<br>
For AngularJS you need to let Keycloak.js do it&#39;s thing before AngularJS bootstraps. This can be improved with a keycloak-angular module, but we haven&#39;t had time to do that. Otherwise Angular reverts the url after keycloak.js has stripped those off.<br>
<br>
Have a look at <a href="https://github.com/keycloak/keycloak/blob/master/forms/common-themes/src/main/resources/theme/base/admin/resources/js/app.js#L14" target="_blank">https://github.com/keycloak/keycloak/blob/master/forms/common-themes/src/main/resources/theme/base/admin/resources/js/app.js#L14</a> that&#39;s how we do it in the admin console.<br>
<div><div class="h5"><br>
----- Original Message -----<br>
&gt; From: &quot;Dean Peterson&quot; &lt;<a href="mailto:peterson.dean@gmail.com">peterson.dean@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>, <a href="mailto:bburke@redhat.com">bburke@redhat.com</a><br>
&gt; Sent: Thursday, 7 May, 2015 4:37:17 PM<br>
&gt; Subject: Re: [keycloak-user] Keycloak still creates long ugly urls<br>
&gt;<br>
&gt; My clients are separate angularjs applications that use keycloak.js to<br>
&gt; communicate with Keycloak. The long urls are always present: when I redirect<br>
&gt; back to the main route after login and on every subsequent route change. I<br>
&gt; use the keycloak.js that automatically resides on the running Keycloak<br>
&gt; server rather than the downloadable version.<br>
&gt;<br>
&gt; On Wed, May 6, 2015 at 9:32 AM, Dean Peterson &lt; <a href="mailto:peterson.dean@gmail.com">peterson.dean@gmail.com</a> &gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I recently upgraded to the latest beta version of Keycloak expecting my long<br>
&gt; ugly url problem to go away:<br>
&gt;<br>
&gt; <a href="http://trade.abecorn.com/?redirect_fragment=%2F&amp;code=ukqPsGX7F3ViiYdYgVjsDGE1v-4TGTqE-We0ksk1nzY.d2386c15-b402-4411-a94a-a175f0fc1334&amp;state=2b84dfb8-0f10-4c15-9737-feb409d7bfb7#/" target="_blank">http://trade.abecorn.com/?redirect_fragment=%2F&amp;code=ukqPsGX7F3ViiYdYgVjsDGE1v-4TGTqE-We0ksk1nzY.d2386c15-b402-4411-a94a-a175f0fc1334&amp;state=2b84dfb8-0f10-4c15-9737-feb409d7bfb7#/</a><br>
&gt;<br>
&gt; Am I doing something wrong?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<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" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div><br></div>