react-native-oauth
react-native-oauth copied to clipboard
Extending AuthProviders for auth version 1.0?
Judging from the conversation in #64 it appears that the customization functionality could only be used to add new 2.0 providers. Indeed, looking at the getApiFor10aProvider method in OAuthManagerProviders, it's not possible to add custom 1.0 providers.
At least, not for Android. As best I can tell from reading over the OAuth1Client.m code, any generic oauth 1.0 provider can be configured for iOS.
It appears as though it should just involve adding another method which mimics the OAuth10aService twitterService(...) method (as well as testing, etc). Granted, I've only been reading through this code for the past 25 minutes or so.
Is it on the roadmap for this project to support custom oauth 1.0 providers for Android? I'd be willing to help implement it. Also, please let me know if I've gotten anything wrong in this issue, too.
Thanks!
@kengorab did you get any news? Are you using an alternative implementation?
Yeah, I ended up rolling my own, unfortunately. Sorry, I know that's not very helpful to you
I did a fork here that supports it partially https://github.com/tmrowco/react-native-oauth
@corradio any intentions of finishing your fork? Just by pure luck, I'm also implementing TripIt :D
I noticed // TODO: GET THE OAUTH CALLBACK :(
I could fork..
Hi @kg-currenxie,
The fork actually works for TripIt. However, we ended re-implementing everything in javascript and handling the Linking with RCTLinking. We've open sourced part of the code here: https://github.com/tmrowco/tmrowapp-contrib/blob/master/integrations/utils/oauth.js
Haha, so did I, also using oauth-1.0a, but got stuck at signing step 3. Thanks for your link, ill check it out :)