#[non_exhaustive]pub enum Provider {
Show 14 variants
Stripe,
GitHub,
Shopify,
Slack,
Square,
Twilio,
Discord,
PayPal,
SendGrid,
Linear,
Zoom,
Dropbox,
StandardWebhooks,
Custom(CustomScheme),
}Expand description
A webhook provider whose signature scheme this crate knows how to verify.
Variants for providers that do not have an implementation yet are still
listed so the API surface matches spec.md §2 and stays additive as
providers ship; calling verify() with one returns
VerifyError::UnsupportedProvider (fail-closed).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Stripe
Stripe (Stripe-Signature, HMAC-SHA256 over t.body).
GitHub
GitHub (X-Hub-Signature-256, HMAC-SHA256 over the raw body).
Shopify
Shopify (X-Shopify-Hmac-SHA256, base64-encoded HMAC-SHA256).
Slack
Slack (X-Slack-Signature, v0= scheme with timestamp).
Square
Square (HMAC-SHA256 over notification URL + body, base64).
Twilio
Twilio (HMAC-SHA1 over full URL + sorted form params; needs
VerifyOptions::request_url and VerifyOptions::form_params).
Discord
Discord (Ed25519 public-key signatures; Secret holds a public key).
Unlike the shared-secret schemes, verification here proves the payload
was signed with the private key corresponding to the public key in
crate::Secret — see the provider module’s security-model notes.
PayPal
PayPal (certificate-based RSASSA-PKCS1-v1_5 SHA-256; webhook ID and
certificate via VerifyOptions::webhook_id /
VerifyOptions::verifying_material).
Requires the paypal crate feature; without it this variant fails
closed with VerifyError::UnsupportedProvider.
SendGrid
SendGrid (ECDSA P-256; key via VerifyOptions::verifying_material).
Requires the sendgrid crate feature; without it this variant fails
closed with VerifyError::UnsupportedProvider.
Linear
Linear (linear-signature, HMAC-SHA256).
Zoom
Zoom (X-Zm-Signature, HMAC-SHA256 with timestamp).
Dropbox
Dropbox (X-Dropbox-Signature, HMAC-SHA256 over the raw body).
StandardWebhooks
Standard Webhooks spec (webhook-* headers; Svix, Clerk, Resend, …).
Custom(CustomScheme)
A caller-configured HMAC scheme (spec.md §2.2): covers long-tail
providers and internal senders without waiting on a crate release,
with the same constant-time and fail-closed guarantees as the
built-ins. See CustomScheme.