keyonic-v2 icon indicating copy to clipboard operation
keyonic-v2 copied to clipboard

Keycloak is inaccessible for use on device.

Open jorgewmoura opened this issue 6 years ago • 2 comments

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:

screenshot

jorgewmoura avatar Jun 19 '18 14:06 jorgewmoura

It looks like you are using an external browser app, you must use the InAppBrowser from inside the application.

tomjackman avatar Oct 17 '18 11:10 tomjackman

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.

petreionescu avatar Oct 24 '18 14:10 petreionescu