Q. I'm building a webhook listener using HMAC authentication and I’m unsure which data to encode. I see options to choose the algorithm and to set a key, but not for the value itself. Is it the URL, the request body, or something else?
A. To get a signature, encode the request body using the specified algorithm and secret.
Check out this related article in our Help Center: Create webhook listeners.
can you give clear step by step procedure of screenshots i tried this article but im not getting the result as 401
Hi Kumar,
We would like to understand how you encountered the error and what actions you took that led to this error.
Thanks,
Om Mishra
actually im trying HMAC authentication webhook for one of my clients
i tried as the same procedure as in the link i posted
but im getting 401 error if any possibilities please help
Hi Kumar,
I just tried and it's working for me. Below are the steps I used to make it work.
1. I created a webhook listener in IO and provided the necessary details. For the Key (secret) value, I used: "secret".
2. I entered the POST public URL in Postman and used the script mentioned in the earlier post.
3. In the above screenshot, I defined the HMAC variable using the same script I'm using in the Pre-request Script, as shown in the screenshot below.
4. I received a 204 response code and was able to see the data in IO.
Hope this helps.
Thanks,
Om Mishra
thanks @ommishra & @kathyanaqueeman it is working fine through post man
one more last doubt how we will set this through celigo https like what we did in postman
Do you mean how to set this up through the integrator.io interface rather than through Postman? We have some instructions here: Set up a webhook listener. There's a section specifically on HMAC.
Hi Kumar,
For testing, I have used "secret" as the secret value, which should also be entered in the Pre-request Script in Postman. This is the same value you will use when configuring your webhook in IO.
Thanks,
Om Mishra
How we will do that same thing in celigo platform through http
Thanks for @ommishra for clarifying the doubt in postman
How can we achieve the same thing in celigo platform through http @ommishra
@kathyanaqueeman ya webhook listener is done working fine with the help of @ommishra
but how do i set up http so i invoke webhook it from another flow
Do you want to invoke a webhook from another flow in integrator.io? I'm not sure about that. Webhooks send an HTTP POST message over the web in real-time to an endpoint when an event occurs in an application. When an event triggers a webhook request, the source application sends a message to a specified URL, and a webhook listener receives the message and then executes operations according to the message's content.
If you mean that you want an "event" (like a flow ending) in IO to trigger a webhook flow, that might be possible, but I'm not sure. Perhaps @ommishra can help. I know you can daisy chain flows in integrator.io, but I'm not sure how much help that will be.
Yes like you used pre requisite script right
what type of settings need to be done in celigo Http in another flow to invoke the webhook
Let me check on this and get back to you. I'll reach out when I have something concrete to share. Thanks!
i want http that calls hmac anyways i know that one
i want like how can we do the configuration of that hmac webhook settings in a http connector for invoking the hmac webhook connector , you showed the example of invoking through postman, i m researching for invoking hmac webhook through celigo connector for anypossibility
take your time no issues and post it here