[keycloak-dev] Keycloak and Angular, how to login after angular has been bootstrapped

replymenot replymenot at gmail.com
Wed Jan 20 15:46:45 EST 2016


Hi all,

Recently I attended a seminar on Keycloak and I was totally blown away. Loved it and it seems to be exactly what I need for my microservices architecture.
I use AngularJS as my front-end and I have this burning question.

How can I use Keycloak as security provider in a SPA after the angular app has already been bootstrapped?

The website I’m creating has anonymous and role based secure parts. So I only want login based on context and not on load.
I can’t seem te be able to find examples.
Right now I get the login from keycloack but after redirect my angular app is re-bootstrapped and I loose my login, because it is not part of my single page app...

Help will be appreciated.

Ivo.


More information about the keycloak-dev mailing list