CampaignFlow.MockServer.Webhooks.Signature (CampaignFlow Client v2.2.0)

View Source

HMAC-SHA256 signing for outbound webhook payloads.

Mirrors the real CampaignFlow webhook signature scheme:

X-Webhook-Signature: t={timestamp},v1={hex_hmac_sha256}

Where the signed payload is "{timestamp}.{raw_json_body}" and the HMAC uses the per-environment webhook_signing_secret.

Summary

Functions

Builds the value of the X-Webhook-Signature header for a given body, secret, and unix timestamp (seconds).

Functions

build(body, secret, timestamp)

@spec build(String.t(), String.t(), integer()) :: String.t()

Builds the value of the X-Webhook-Signature header for a given body, secret, and unix timestamp (seconds).