0

I am building Ionic 2 app and I want to use Keycloak for login/signup.

I have the following situation:

I am on Keycloak login page and when I login, I am redirect back to my app. I would expect that Keycloak will set cookies, but it didn't. I guess it is because of this: Can you use cookies in a Cordova application?.

Is there any way how to tell Keycloak to use local storage instead of cookies. Or any other solution?

I am using this implementation of keycloak & angular 2 colaboration.

Community
  • 1
  • 1
Tomas Marik
  • 4,053
  • 3
  • 31
  • 62

1 Answers1

1

In the Keycloak there is a Javascript Adapter - keycloak.js, it already knows how to work with a Cordova application, it is only necessary to disable the token checking through the iframe.

I created a simple app Ionic2 with Keycloak integration https://github.com/sergeyrolich/ionic2-keycloak

Segavax
  • 136
  • 2
  • 8