Skip to main content
Best answer

Oauth 2.0 for webhook calls from Zapier


Paul
  • Zapier Expert
  • 6 replies

Without writing a whole app to deploy on Zapier is there a way I can do Oauth 2.0 token requests assuming timeouts and refreshing tokens.


I'm envisioning the workflow to be something like this:

Trigger: Simple webhook (called on a schedule or from another Zap as needed to get information)

Step 1: Get the token from Storage app

Step 2: Run a webhook to test if the token is valid still

Path A: - if token valid Then do the actual webhook call to get the information needed.

Path B: - if token expired or error on the first step

Path B, Step 1: make a call to refresh the token

Path B, Step 2: store the new token in storage

Path B, Step 3: Call the webhook to re-trigger this zap (yikes, possibility for non ending loops here)


What am I missing here? Is this doable?


Best answer by DanversBest answer by Danvers

Hi Paul, I'm going to forward this one to our Support Team to see if they have a good solution for you!


View original
Did this topic help you find an answer to your question?
50% found this helpful
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

alex
Forum|alt.badge.img+2
  • Zapier Expert
  • 85 replies
  • July 15, 2019

Hey Paul - I would absolutely love a more native and streamlined solution for this via Zapier.

We avoid all things OAuth2.0 because of how much of a pain it is to deal with. There are definitely other Zapier Experts here who have accomplished what you are referring to and I'm pretty sure they use the Storage app, as you have mentioned. Hopefully one of them can come and speak to this.

Cheers!



Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • 3731 replies
  • Answer
  • July 26, 2019

Hi Paul, I'm going to forward this one to our Support Team to see if they have a good solution for you!



  • 0 replies
  • July 29, 2019

I used Zapier CLI for all of my oAuth2.0 APIs.


I'm also keen to know how we can achieve above flow without writing a APP. 🤔