Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keycloak is inaccessible for use on device. #5

Open
jorgewmoura opened this issue Jun 19, 2018 · 2 comments
Open

Keycloak is inaccessible for use on device. #5

jorgewmoura opened this issue Jun 19, 2018 · 2 comments

Comments

@jorgewmoura
Copy link

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

@tomjackman
Copy link
Owner

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

@petreionescu
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants