https://github.com/systemli/userli-webhook-listener
https://github.com/systemli/userli-webhook-listener
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/systemli/userli-webhook-listener
- Owner: systemli
- License: agpl-3.0
- Created: 2025-04-12T15:04:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-10T22:08:05.000Z (about 1 year ago)
- Last Synced: 2025-06-15T02:42:17.572Z (12 months ago)
- Language: Go
- Size: 2.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# userli-webhook-listener
[](https://github.com/systemli/userli-webhook-listener/actions/workflows/integration.yml) [](https://github.com/systemli/userli-webhook-listener/actions/workflows/quality.yml) [](https://sonarcloud.io/summary/new_code?id=systemli_userli-webhook-listener) [](https://sonarcloud.io/summary/new_code?id=systemli_userli-webhook-listener) [](https://sonarcloud.io/summary/new_code?id=systemli_userli-webhook-listener)
## Debugging
Cheat sheet for sending requests with X-Signature header:
```shell
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"
```