<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"><<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>></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'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's thing before AngularJS bootstraps. This can be improved with a keycloak-angular module, but we haven'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's how we do it in the admin console.<br>
<div><div class="h5"><br>
----- Original Message -----<br>
> From: "Dean Peterson" <<a href="mailto:peterson.dean@gmail.com">peterson.dean@gmail.com</a>><br>
> 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>
> Sent: Thursday, 7 May, 2015 4:37:17 PM<br>
> Subject: Re: [keycloak-user] Keycloak still creates long ugly urls<br>
><br>
> My clients are separate angularjs applications that use keycloak.js to<br>
> communicate with Keycloak. The long urls are always present: when I redirect<br>
> back to the main route after login and on every subsequent route change. I<br>
> use the keycloak.js that automatically resides on the running Keycloak<br>
> server rather than the downloadable version.<br>
><br>
> On Wed, May 6, 2015 at 9:32 AM, Dean Peterson < <a href="mailto:peterson.dean@gmail.com">peterson.dean@gmail.com</a> ><br>
> wrote:<br>
><br>
><br>
><br>
> I recently upgraded to the latest beta version of Keycloak expecting my long<br>
> ugly url problem to go away:<br>
><br>
> <a href="http://trade.abecorn.com/?redirect_fragment=%2F&code=ukqPsGX7F3ViiYdYgVjsDGE1v-4TGTqE-We0ksk1nzY.d2386c15-b402-4411-a94a-a175f0fc1334&state=2b84dfb8-0f10-4c15-9737-feb409d7bfb7#/" target="_blank">http://trade.abecorn.com/?redirect_fragment=%2F&code=ukqPsGX7F3ViiYdYgVjsDGE1v-4TGTqE-We0ksk1nzY.d2386c15-b402-4411-a94a-a175f0fc1334&state=2b84dfb8-0f10-4c15-9737-feb409d7bfb7#/</a><br>
><br>
> Am I doing something wrong?<br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<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" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div><br></div>