What about making a specific Keycloak Cordova plugin ? 
Most of the work is done with keycloak.js but the plugin could install the inappbrowser for us and expose keycloak.js ?
Small plugin but useful (at least for me ;) 

On Mon, Nov 10, 2014 at 2:04 PM, Erik Jan de Wit <edewit@redhat.com> wrote:

We discussed this before, using the swift iOS libs for cordova is not really great. When building cordova app as a developer I shouldn’t have to fire up Xcode to run or test my applications. Because the project that is used by cordova right now doesn’t support swift you’ll have to change settings in Xcode after installing the plugin to make it work again.

So I suggest for the Oauth2 plugin we make it a javascript only plugin and depend on the inappbrowser, in this specific case I don’t think using the native parts will improve security (correct me I’ve I’m wrong)

This will enable us to keep our roadmap and in time cordova will merge our PR and swift will be supported.

        Erik Jan
aerogear-dev mailing list