[keycloak-dev] Keycloak - Ionic 2 & Cordova - Persist login information
DPS Mobile GPE
dps.mobile.gpe at gmail.com
Fri Feb 24 07:18:09 EST 2017
I'm building app with Ionic 2 & Cordova and using Keycloak for login/signup.
My problem is when exit the application without logging out, and open the
application again, the keycloak sends me to the login page again.
i'll trying add "offline_access" to scope options but get the error
'Access-Control-Allow-Origin'
XMLHttpRequest cannot load
https://my-keycloak-server/auth/realms/app/protocol/openid-connect/token.
No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'http://localhost:8100' is therefore not allowed access.
The response had HTTP status code 400.
My implementation is based on
https://github.com/keycloak/keycloak/tree/master/examples/demo-template/angular2-product-app
I'm doing something wrong? Another suggestion for this implementation?
More information about the keycloak-dev
mailing list