Highlighted

Webhook Connector with OAUTH2 Token Renewal

Bronze Contributor
Bronze Contributor

Hi!

We are setting up a Webhook Connector with OAUTH2 pointing to an API tha requires a token to allow sending HTTP Request with info

We are wondering how does TES handle this kind of situation and we have some questions:

  • Does it handle the Token Retrieval? (We think the answer is yes, but just to be sure)
  • Does it ask for the Token every time before a POST with info?
  • What happens if the token is invalid (for whatever reason)?
  • If a token value previously acquired has an expiration time of 15 minutes ¿Does it renew it after 15 minutes?

We have to setup this connection between APIs manually, we cannot use one of built-in connectors

Could you help us to answer this questions?

Thanks in advance

1 REPLY 1
Highlighted

Webhook Connector with OAUTH2 Token Renewal

Tealium Employee

Hugo,

It looks like you reached out to Tealium Support for this request; however, I wanted to place those answers below as there's interest from other members of the community regarding this topic (going off Kudos for this post):

Q: Does it handle the Token Retrieval? (We think the answer is yes, but just to be sure)

A: Yes, the connector to use would vary depending on your scenario, but typically the three-legged webhook would be the correct connector to use. While the webhook supports complex authentication, there are times when a custom connector would be required.

Q: Does it ask for the Token every time before a POST with info?

A: Yes.

Q: What happens if the token is invalid (for whatever reason)?

A: This would vary depending on the endpoint - typically this would return an error (possibly a 401), but ultimately this depends on how the endpoint is configured to handle bad requests.

Q: If a token value previously acquired has an expiration time of 15 minutes ¿Does it renew it after 15 minutes?

A: It's possible to use a refresh token, as described here: https://auth0.com/learn/refresh-tokens/