File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# userli-webhook-listener
22
33[ ![ Integration] ( https://github.com/systemli/userli-webhook-listener/actions/workflows/integration.yml/badge.svg )] ( https://github.com/systemli/userli-webhook-listener/actions/workflows/integration.yml ) [ ![ Quality] ( https://github.com/systemli/userli-webhook-listener/actions/workflows/quality.yml/badge.svg )] ( https://github.com/systemli/userli-webhook-listener/actions/workflows/quality.yml ) [ ![ Quality Gate Status] ( https://sonarcloud.io/api/project_badges/measure?project=systemli_userli-webhook-listener&metric=alert_status )] ( https://sonarcloud.io/summary/new_code?id=systemli_userli-webhook-listener ) [ ![ Coverage] ( https://sonarcloud.io/api/project_badges/measure?project=systemli_userli-webhook-listener&metric=coverage )] ( https://sonarcloud.io/summary/new_code?id=systemli_userli-webhook-listener ) [ ![ Maintainability Rating] ( https://sonarcloud.io/api/project_badges/measure?project=systemli_userli-webhook-listener&metric=sqale_rating )] ( https://sonarcloud.io/summary/new_code?id=systemli_userli-webhook-listener )
4+
5+ ## Debugging
6+
7+ Cheat sheet for sending requests with X-Signature header:
8+
9+ ``` shell
10+ WEBHOOK_LISTENER_URL=" https://example.org"
11+ SECRET=" secret"
12+ PAYLOAD=' {"type":"user.deleted","timestamp":"2025-01-01T00:00:00.000000Z","data":{"email":"user@example.org"}}'
13+ SIGNATURE=$( printf ' %s' " $PAYLOAD " | openssl dgst -sha256 -hmac " $SECRET " | sed ' s/^.* //' )
14+
15+ curl -i " $WEBHOOK_URL
16+ -H " Content-Type: application/json"
17+ -H " X-Signature: $SIGNATURE "
18+ -d " $PAYLOAD "
19+ ` ` `
You can’t perform that action at this time.
0 commit comments