[PR #1200] [CLOSED] Allow adding digital signatures to webhook headers #1281

Closed
opened 2025-12-29 09:19:09 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/1200
Author: @mathgr22
Created: 10/21/2024
Status: Closed

Base: masterHead: mathgr22/digital-signing


📝 Commits (1)

  • 64e6a77 Allow 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.

## 📋 Pull Request Information **Original PR:** https://github.com/wiremock/WireMock.Net/pull/1200 **Author:** [@mathgr22](https://github.com/mathgr22) **Created:** 10/21/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `mathgr22/digital-signing` --- ### 📝 Commits (1) - [`64e6a77`](https://github.com/wiremock/WireMock.Net/commit/64e6a77037c5156816bf3c594359a247471be64b) Allow adding digital signatures to webhook headers ### 📊 Changes **5 files changed** (+102 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `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) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 09:19:09 +01:00
adam closed this issue 2025-12-29 09:19:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#1281