Hi ,
I'm looking for a simple way to login to keycloak with an AngularJS app. If i use the
example (angular-produt-app) one can find with the keyCloak appliance, the js adapter
redirects the user to the Keycloak login pase "onload "
(keycloakVar.init({onLoad: 'login-required'})...)
But i want to login only when I specifically click on some button. From what I can gather
the method keycloakVar.login() from the docs & JS reference is the way to go.. but
replacing the .init() method with the .login() method doesn't seem to work...
Also, in the "normal" case, the init() regular example itself lets me, after
logging-in succesfully, with still empty Javasript objects once I am successfully
redirected to my app page. (the auth global variable)
The official angular + js-adapter :
https://github.com/keycloak/keycloak/blob/master/examples/demo-template/a...
Could you help me ? I must be missing something.
Thanks a lot
Fabio M