Skip to main content
Best answer

Oauth 2.0 authorization and authentication for custom API webhook request


I’m creating a zap that requires a custom http request to Xero as I  have to get access to some nested JSON objects in the request. Is there a way to use our existing Xero connections to get  a current Access Token and use it in the zap python code, or just a way to Authorize the Zap to get the initial tokens. I don’t see a way to get to Xero’s consent screen or use an existing connection when you write a custom request as code or  as a webhook. The Webhook seems to just offer basic authentication. 

Best answer by GetUWiredBest answer by GetUWired

Hi @data_etl1 

No there is not a way to use your existing connection. Since the app is using Oauth 2.0 authentication, it would be best to build a custom integration here: https://developer.zapier.com/

 

View original
Did this topic help you find an answer to your question?
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

GetUWired
Forum|alt.badge.img+12
  • Zapier Expert
  • 1030 replies
  • Answer
  • July 22, 2021

Hi @data_etl1 

No there is not a way to use your existing connection. Since the app is using Oauth 2.0 authentication, it would be best to build a custom integration here: https://developer.zapier.com/

 


  • Author
  • Beginner
  • 1 reply
  • July 22, 2021

Thank you GetUWired.  I tried that and kept getting an error . Any suggestions on resolving this. 

 


GetUWired
Forum|alt.badge.img+12
  • Zapier Expert
  • 1030 replies
  • July 23, 2021

@data_etl1 

 

Yes, I would follow the instructions here; https://developer.xero.com/documentation/guides/oauth2/auth-flow/#xero-tenants 

 

the refresh token will only be included if you specify the scope offline_access