[Aerogear-users] Android Native Login to Keycloak
supittma at redhat.com
Mon Aug 31 10:51:56 EDT 2015
On Fri, Aug 28, 2015 at 7:42 PM, Naif <nifs.arpegiuz at gmail.com> wrote:
> Thanks for the reply
> I downloaded the android project, and i have followed the instructions; I
> imported 'demo-realm.json' and create the 'keycloak.json' file(added on
> res/raw), but, when i run the project, i get on my smartphone:
> /WE'RE SORRY ...
> Invalid parameter: redirect_uri/
> on the server console, i get:
> /WARN [org.keycloak.events] (default task-50) type=LOGIN_ERROR,
> realmId=98ac4271-17a4-490a-97b3-d4f11d05510b, clientId=Android,
> ipAddress=192.168.0.16, error=invalid_redirect_uri, response_type=code,
^^^ Redirect uri your client is sending
> and in my keycloak admin console(Clients -> Android -> Settings):
> /Access Type: confidential
> Valid Redirect URIs: http://oauth2callback
^^^ Redirect URI your server is expecting
> Web Origins: http://oauth2callback/
> Do you know, how can i solve this?
Change one to the other. I would suggest setting your redirect uri in the
KC console to urn:ietf:wg:oauth:2.0:oob/
> View this message in context:
> Sent from the aerogear-users mailing list archive at Nabble.com.
> Aerogear-users mailing list
> Aerogear-users at lists.jboss.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Aerogear-users