Replies: 1 comment 7 replies
-
The WebHook functionality is not that extended that you can provide your own code for calculating something that HMAC. I can take a look what it takes to add this, but it involves a lot of changes I think. Maybe you can write your own handlebars function to create that HMAC? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to determine if the functionality I'm trying to achieve is possible or if it is not currently supported.
Basically what I'm trying to accomplish is after a response is sent as a result of an HTTP post, I want to send one or more
Webhook
responses to a different URL than the caller to mock a 3rd-party service we use. I want the data sent in the body and headers to replicate data that was sent via the initial request. This can be done effectively via the Handlebars transformer, however the problem is I need to hash the body of theWebhook
via HMAC and supply a signature in the header. As far as I am aware, Handlebars is not sophisticated enough to do this.Essentially I want to accomplish this via having a new Webhook request created each time there is a request as can be accomplished via the
IResponseBuilder.WithBody()
overload that allows a function to be supplied that will be called each time a request goes through. There doesn't seem to be the ability to do this with theIResponseWithAProvider.WithWebhook()
method.Is the functionality I'm trying to implement not currently possible, or am I just not understanding how to do it?
Beta Was this translation helpful? Give feedback.
All reactions