keyonic-v2
keyonic-v2 copied to clipboard
Keycloak is inaccessible for use on device.
The app works when I test it using the browser. But, if I build and install on my phone, so don't works. The keycloak console show this message:
10:56:34,563 WARN [org.keycloak.events] (default task-22) type=LOGIN_ERROR, realmId=keypress, clientId=keyonic-v2, userId=null, ipAddress="my-device-ip", error=invalid_redirect_uri, redirect_uri=http://localhost
And, on my device, I receive this message:
It looks like you are using an external browser app, you must use the InAppBrowser from inside the application.
If you use InAppBrowser the google oauth flow doesn't work. More info here
There are some mentions here for the use of 'cordova-native' but i haven't been able to make it work on a ios device because the window.open method located in the cordovaOpenWindowWrapper function returns null in safari.
It is really frustrating as there are no complete working examples on real devices of using the js adapter with all of the oauth flows.