On Fri, Aug 28, 2015 at 7:42 PM, Naif <nifs.arpegiuz@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, userId=null,
ipAddress=192.168.0.16, error=invalid_redirect_uri, response_type=code,
redirect_uri=urn:ietf:wg:oauth:2.0:oob/
^^^ 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: http://aerogear-users.1116366.n5.nabble.com/Android-Native-Login-to-Keycloak-tp219p221.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users