[keycloak-user] Keycloak Android OIDC example

Thomas Darimont thomas.darimont at googlemail.com
Mon May 9 13:31:01 EDT 2016


Hello,

I just played a bit with the oidc android example [0] here and made it work
with keycloak see my branch [1].
I added a small gif that demonstrates the auth flow:
https://github.com/thomasdarimont/android-openid-connect/blob/feature/keycloak-oidc-demo/keycloak-android-oidc-demo.gif

Note I tested this with latest Keycloak 1.9.x branch (but should work as
well with current master 2.0.x):

If you want to play with the example app you need to setup your keycloak
like so:

# Keycloak Setup
## create new client for the android app:

- clientid: android-app-1
- clientname: android-app-1
- access type: confidential
- valid redirect url: app://oidcsample.lnikkila.com

## Create a demo user
- username: demo
- password: demo

https://github.com/thomasdarimont/android-openid-connect/tree/feature/keycloak-oidc-demo

Note that I needed to use the AuthCode flow [2] since the Hybrid-Flow
wasn't supported by Keycloak.

Hope you find that interesting :)

Cheers,
Thomas

[0] https://github.com/learning-layers/android-openid-connect
[1]
https://github.com/thomasdarimont/android-openid-connect/tree/feature/keycloak-oidc-demo
[2]
https://github.com/thomasdarimont/android-openid-connect/blob/feature/keycloak-oidc-demo/app/src/main/java/com/lnikkila/oidcsample/Config.java#L44
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160509/c710ca6f/attachment.html 


More information about the keycloak-user mailing list