mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #1200] [CLOSED] Allow adding digital signatures to webhook headers #1281
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/wiremock/WireMock.Net/pull/1200
Author: @mathgr22
Created: 10/21/2024
Status: ❌ Closed
Base:
master← Head:mathgr22/digital-signing📝 Commits (1)
64e6a77Allow adding digital signatures to webhook headers📊 Changes
5 files changed (+102 additions, -0 deletions)
View changed files
➕
src/WireMock.Net.Abstractions/Models/IDigitalSignature.cs(+41 -0)📝
src/WireMock.Net.Abstractions/Models/IWebhookRequest.cs(+10 -0)📝
src/WireMock.Net/Http/WebhookSender.cs(+25 -0)➕
src/WireMock.Net/Models/DigitalSignature.cs(+20 -0)📝
src/WireMock.Net/Models/WebhookRequest.cs(+6 -0)📄 Description
Because webhook bodies and headers are transformed separately, Handlebars cannot be used to generate digital signatures using both the body and the header. This change allows the user to specify two callbacks to use to generate a digital signature for the webhook before it is sent.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.