Skip to content

Add webhook verification support#50

Merged
bpapillon merged 2 commits intomainfrom
webhook-verification
Mar 27, 2025
Merged

Add webhook verification support#50
bpapillon merged 2 commits intomainfrom
webhook-verification

Conversation

@bpapillon
Copy link
Collaborator

No description provided.

@bpapillon bpapillon self-assigned this Mar 27, 2025
/// <summary>
/// Header containing the webhook signature.
/// </summary>
public const string WebhookSignatureHeader = "X-Schematic-Webhook-Signature";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't remember if CSharp allows you do put constants outside a class, but these might be better suited at namespace scope.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking more about this - and this goes for every official SDK - if we want to gather all the valid headers globally, we can probably import and re-export them in a dedicated namespace. Not a blocker here.

Copy link

@dontlaugh dontlaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one missing test case. Otherwise looks good. The test server is a nice touch.

@bpapillon bpapillon requested a review from dontlaugh March 27, 2025 18:02
@bpapillon bpapillon merged commit 5939c5c into main Mar 27, 2025
4 checks passed
@bpapillon bpapillon deleted the webhook-verification branch March 27, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants