oauth-io / oauth-phonegap

OAuth.io plugin for Apache Cordova/PhoneGap
195 stars 69 forks source link

Oauth.io oauth-phonegap Cordova plugin and Tabris.js #62

Open peterzen opened 8 years ago

peterzen commented 8 years ago

I need to make the oauth-io/oauth-phonegap Cordova plugin work in the Tabris.js environment. The existing plugin does exactly what I need – but it only works in a vanilla Cordova context due to its reliance on the DOM context. I was wondering if anyone here managed to make this work? If not, what would be the best option to go about this? I can see two options:

a) implement a modified version of oauth-phonegap to make it work using the cordova-inappbrowser plugin (and find a way to pass the object received from the Oauth API back to main.js)

b) implement a new Cordova plugin that exposes the API from the native oauth-io/oauth-android & oauth-io/oauth-ios modules via the Cordova API

Option a) does not seem very clean (but might work), b) would be much cleaner but also more complex to implement.

Has anyone been in these shoes?

Many thanks for any advice/hints/pointers.