[keycloak-dev] iOS Keycloak demo

Christos Vasilakis cvasilak at gmail.com
Fri Feb 28 11:58:44 EST 2014

Hi everyone,

worked out a simple application that utilises AeroGear iOS OAuth2 adapter to go against a Keycloak server. You can find the source code here[1] and a small video demonstration here[2]. 

Overall it worked great but needed to make some small adjustments on the library which I would like your feedback. Two issues that raised are in the request parameters:

- the ‘scope’ parameter on the request needed to be in a specific format "realm": [ “user”, .. ]. Needed to include ‘realm’ and a list of separated names. Not sure if this is the same as the ‘scope’ parameter in OAuth2 where just a space delimited strings are required. Further,  the scope needed to be base64 url encoded in order for the server to parse it.
- the ‘client_secret’ parameter needed to be encoded as ’secret’.

Note that this was my first experience with keycloak and possible I am missing some details, but would be really happy to hear your thoughts and suggestions.

As a final note, I really like the ‘Installation’ JSON copy paste on the examples and have the client lib work out the details. I think on the iOS side we can offer similar experience where the user installs the *.json and have the library pick up the configuration details. Something to look at.

Keep up the good work!


[1] https://github.com/cvasilak/KeycloakDemo
[2] https://vimeo.com/87862111

More information about the keycloak-dev mailing list