Could you share some code on how you initiate keycloak and bootstrap the angular app ?

Le lundi 26 septembre 2016, Maurício Giacomini Penteado <mauriciogiacomini@hotmail.com> a écrit :

Hello everybody


I have a strange error trying codify with keycloak 2.0.0, Angular 1.5.8 and Wildfly 10. I am programming an application that follows concepts of "WYSIWYG".
In my application I have setted keycloak to work on model "check-sso".
All work perfectly if browsing is done with unauthenticated users on any path from my application.
But strangely, authenticated users just can browse on root context from my application. If any aditional path is requested with an authenticated user the app starts a infinite loop.

Example (with app running on root context "/"):

www.exampledomain.com/  - > Works perfectly with authenticated users or unauthenticated users. 

www.exampledomain.com/someAppPath  - > Just works with unauthenticated users. With authenticated users starts a infinite loop. 


If anybody has an idea to solve this problem please, let me know.

Regards,
Maurício.