Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.46 KB

File metadata and controls

19 lines (14 loc) · 1.46 KB

userli-webhook-listener

Integration Quality Quality Gate Status Coverage Maintainability Rating

Debugging

Cheat sheet for sending requests with X-Signature header:

WEBHOOK_LISTENER_URL="https://example.org"
SECRET="secret"
PAYLOAD='{"type":"user.deleted","timestamp":"2025-01-01T00:00:00.000000Z","data":{"email":"user@example.org"}}'
SIGNATURE=$(printf '%s' "$PAYLOAD" | openssl dgst -sha256 -hmac "$SECRET" | sed 's/^.* //')

curl -i "$WEBHOOK_URL 
	-H "Content-Type: application/json" 
	-H "X-Signature: $SIGNATURE" 
	-d "$PAYLOAD"