I have tested this by building 2 cordova apps and install them on the same device and try login. I can confirm that SSO is not working: 1. In the first app, I login first, it works 2. In the second app, I have to login again, and it works too. 3. Afterwards, when I use the apps again, I don't have to login in both. I believe the problem is with the `InAppBrowser`. Apparently on Android, cookies are not shared between the InAppBrowsers for each app, so SSO doesn't work. I also tried to see if I can get `cordova-native` to work, but I failed to setup universal link as there are not enough documentation about how to use it with keycloak. Code changes can be found in this branch: https://github.com/wei-lee/ionic-showcase/tree/sso-test. So I think this issue will require extra work to fix. However, I do not consider it as a blocker. For a few reasons: 1. I don't think it is a problem with our JS SDK. It is a problem of the running environment. It might be possible to fix it by changing the browser to use either the browser tab, or system browser. If we can figure it out, it's a problem of updating the showcase app and documents about how to do sso. 2. Even if we can't get it work, we can log this as a known issue and hopefully we can solve it by some other way. We don't know how many customers need sso yet. Christopher Foley WDYT? |