Verify Oraami webhooks with .NET

Authenticate the raw webhook body with the standard cryptography library in .NET 8 or later.

Updated Oraami Inc

Add the verifier to your server

Download the source file and include it in your .NET project. Use .NET 8 or later. Store the endpoint signing key in your server’s secret manager.

Verify before parsing

Read the POST body as bytes. Pass it with Oraami-Timestamp, Oraami-Signature, the signing key and the current UTC time. Reject a failed check. The helper checks the five-minute freshness window and compares the HMAC in constant time.

bool valid = OraamiWebhook.Verify(rawBody, timestamp, signature, secret, DateTimeOffset.UtcNow);

Check a signed delivery

Send a test event from Webhooks. After signature verification, parse the body and validate the workspace, site, event and delivery identifier. Deduplicate the signed ID durably, then return 2xx. Confirm that the same request fails verification if a byte of the body changes.

Related guides