HomePhabricator
Diffusion Comm 7166879e117a

[keyserver] verify webhook event with webhook secret

Description

[keyserver] verify webhook event with webhook secret

Summary:
This verifies the webhook event with X-Neynar-Signature and the webhook secret to verify it's coming from Neynar.

Depends on D13755

Test Plan:
Tested by triggering a webhook event on warpcast and verifying that isValid was true.
Verified that a webhook event with a differing body resulted in isValid evaluating as false

Reviewers: ashoat, varun

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13756

Details

Provenance
willAuthored on Oct 20 2024, 9:45 PM
Reviewer
ashoat
Differential Revision
D13756: [keyserver] verify webhook event with webhook secret
Parents
rCOMM8cf7d538a633: [keyserver] moving getting neynar config to function
Branches
Unknown
Tags
Unknown