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/...
that's how we do it in the admin console.
----- Original Message -----
From: "Dean Peterson" <peterson.dean(a)gmail.com>
To: keycloak-user(a)lists.jboss.org, bburke(a)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(a)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=ukqPsGX7F3ViiYdY...
Am I doing something wrong?
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user