Refresh expired bearer token automatically
Posted Nov 03, 2022
Hello,
I am working with Webhooks in Zendesk (Admin centre > Apps and Integrations > Webhooks), where I am sending trigger updates to the Webhook endpoint. These Webhook endpoints are authenticated through a Bearer token and the bearer token is valid for 30 minutes alone. After 30 minutes, I will have to generate a new token from the client application and apply it in the Zendesk Webhooks section.
In applications like ServiceNow, it is possible to regenerate access tokens through 'Refresh Token' automatically once it is expired. Is there any similar option that exists in Zendesk? If not, any plan to implement it in future?
0
13
13 comments
Greg Katechis
Not at this time, Daniel. If I see any news in this area, I'll come back here and drop an update.
0
Daniel Garibek
Hi 1263082154109, any updates on this? This is such an important feature as you can see as stated by the other developers here. I need this as well to make my webhook work with obtaining a refresh token. Please provide an update or a workaround. Thank you.
0
Greg Katechis
Hi Madhanprabhu! That is correct, we still do not have this functionality available. The only available auth methods currently are Basic, Bearer token, and API tokens.
0
Madhan Thangadurai
Hello Zendesk Community,
Is it still the same case now as 1900280398944 and 5742331406874 mentioned ? We have a listening endpoint for Zendesk webhook events and at this moment we recommended to use only OAuth2.0. Are we still not allowed to get the refresh tokens as part of webhooks ?
0
Sindhoor Preetham
I have the same problem as @Aravindaraj J where NetSuite only issues OAuth 2.0 tokens with a refresh token, but Zendesk is only letting me enter a bearer token and has nothing that facilitates the refreshing part for webhooks
1
Joyce
Hello Sue,
For Webhook authentication, you need to use the Basic authentication method for API token in the following format:
You can also visit this article for more information on how API token is used for authentication.
0
Sue
Hi 1263082320149
Wondering if you can help.
I want to create a webhook using the API Key for authentication.
However, the Webhook then asks for a Header name and Value
This is where I'm getting confused. I have tried using:
Header name: Authorization
Value: Bearer <my_api_key>
But I receive an "invalid token" error. I have verified that my API token is active and current. See below error and screengrab.
Do you know what needs to be entered into these fields to make the Webhook work?
Many thanks
Error:
Screengrab (Not sure what to enter into these fields)
0
Sabra
Hey 1263758749190! Based on the token example you provided, it appears that you are using an API token, not a bearer token. Bearer tokens are opaque strings, and they're the predominant type of access token used with OAuth 2.0. You can find more information in our Developer Docs for the available Webhook Authentication methods.
0
Amit Chinchane
Hi All,
I am trying to create a webhook with bearertoken, but it is not working, The same wehbook with basic authentication is working properly, but if i switch to bearer token, then it gives 401 error
{
"error": "invalid_token",
"error_description": "The access token provided is expired, revoked, malformed or invalid for other reasons."
}
I tried adding the token in all the possible format:
what am i doing wrong
0
Marwan Al Jeburi
Hi 1900280398944,
Authentication seems to be a hassle to work with across various systems and platforms.
Allow me to suggest a solution that not only resolves the authentication issues, but also provides a host of additional features to make integrating ZenDesk and ServiceNow much easier and feature rich.
Exalate is a fully decentralised integration solution that will allow you to integrate ZenDesk with ServiceNow without the need for direct authentication as Exalate on ZenDesk will communicate to Exalate on ServiceNow it allows you to have full control on the info/data send and how this info/data is received and displayed. Plus allowing for data manipulation and setting up control flow.
Have a look and let me know if it fits you needs.
Kind regards,
1
Sign in to leave a comment.