Twitter 3-legged Oauth

Has anyone explored using the API Connector with Twitter’s 3-legged Oauth process? It’s the only Oauth that lets developers post + delete tweets on a user’s account but requires a temporary token before the Oauth-2 process.

https://dev.twitter.com/oauth/3-legged

Having some trouble getting the API to authenticate. @emmanuel is this possible with the current connector?

I don’t know. Why wouldn’t it be? Are you hitting some limitations?

I’m hitting an issue with generating a HMAC signature. Any Twitter API request needs a OAuth 1.0 signature which involves taking all of the parameters and running them through an HMAC-SHA1 hashing algorithm. Details here: https://dev.twitter.com/oauth/overview/authorizing-requests

Thanks for your help :slight_smile:

Right. The API connector doesn’t support this yet.

Hey emmanuel,

Do you know why I can’t connect to twitter, in some reason?

Hi Brent, we’re trying to setup a similar 3-legged OAuth1.0 with the Garmin Health API. Realizing it was quite some time ago… curious if you were ever able to get this working with Twitter?

Thinking about building a plugin for the community if we can get it working on our end.

PS: really enjoyed your sessions at Zero Code con recently and appreciate your consideration either way.

Best,
Christian

Hi Christian,

I believe I was able to get it to work using the API connector, but can’t find that project currently. Can’t believe that was 4 years ago!

Best of luck with the connection, I agree that Garmin would be a great plugin for the community.

1 Like

Awesome, thanks for the re. Will put this on the roadmap and let you know how it goes.

Never managed to get OAuth1.0 to sign properly using normal Bubble.

You could look at a Server Side Plugin if there is a node module around.

1 Like

This plugin does the trick. I was banging my head against the wall and somehow ran across this. I don’t like the subscription model… but its affordable and will save hours and hours of time. 🔑 [New Plugin] OAuth 1.0a Request Signing Handler

Based on feedback and requests from the community, we built a plugin just for Twitter. This handles the entire oauth process and calls the relevant APIs as well: https://bubble.io/plugin/twitter-connector-pro-1610513879562x839172977378197500

Here is the link to the detailed documentation: https://docs.pathfix.com/twitter-integration

Let us know if you are looking for any specific APIs

1 Like

No need to pay for Twitter. You can use Pathfix, or Auth0.

But if you HAVE to sign then it will be worth it as you say.