In that case you've got a problem. Keycloak.js strips off the code and redirect_fragment query params.
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.
Have a look at https://github.com/keycloak/keycloak/blob/master/forms/common-themes/src/main/resources/theme/base/admin/resources/js/app.js#L14 that's how we do it in the admin console.
> _______________________________________________
----- Original Message -----
> From: "Dean Peterson" <peterson.dean@gmail.com>
> To: keycloak-user@lists.jboss.org, bburke@redhat.com
> Sent: Thursday, 7 May, 2015 4:37:17 PM
> Subject: Re: [keycloak-user] Keycloak still creates long ugly urls
>
> My clients are separate angularjs applications that use keycloak.js to
> communicate with Keycloak. The long urls are always present: when I redirect
> back to the main route after login and on every subsequent route change. I
> use the keycloak.js that automatically resides on the running Keycloak
> server rather than the downloadable version.
>
> On Wed, May 6, 2015 at 9:32 AM, Dean Peterson < peterson.dean@gmail.com >
> wrote:
>
>
>
> I recently upgraded to the latest beta version of Keycloak expecting my long
> ugly url problem to go away:
>
> http://trade.abecorn.com/?redirect_fragment=%2F&code=ukqPsGX7F3ViiYdYgVjsDGE1v-4TGTqE-We0ksk1nzY.d2386c15-b402-4411-a94a-a175f0fc1334&state=2b84dfb8-0f10-4c15-9737-feb409d7bfb7#/
>
> Am I doing something wrong?
>
>
>
>
> keycloak-user mailing list
> keycloak-user@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user