SergeyRolich / ionic2-keycloak

Ionic 2 app with Keycloak integration
11 stars 6 forks source link

Return from iframe #1

Closed tuvokki closed 6 years ago

tuvokki commented 7 years ago

Hi,

fantastic work on the ionic-keycloak integration, it really helped me a lot in understanding how the process works. I have a question about the iframe (?) that opens when the app goes to the login (or signup) flow, it shows a 'Done'-button and some navigation arrows in the bottom.

img_0064

After successfully logging in I get redirected to a website (I'ts a shared keycloak with a webapplication so the redirect might be due to a wrong configuration on the keycloak-redirect site) and the done and navigation buttons remain.

img_0065 (never mind the 'Fatal error', this is expected behaviour, we're absolutely logged-in)

For my flow I'd like to return to the ionic app after logging in, and use the session I created during the login flow.

  1. is this an iframe, or some kind of webview?
  2. how do I close this to return to the app when I'm on a device?

Hope you can shed some light on this.

Kind regards, Wouter

SergeyRolich commented 7 years ago

Hi. Why do you use iframe? Is it possible to do without it?

tuvokki commented 7 years ago

When running on a device I can see in the debugger that it is using the cordova-plugin-inappbrowser plugin, which answers my first question. Yet the redirect takes place and my app remains in the inappbrowser window.