Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1.11 KB

README.md

File metadata and controls

22 lines (12 loc) · 1.11 KB

Build Status

Clubhouse Webhook Auth

Package that implements verification logic for webhooks generated by clubhouse with a secret. The documentation for clubhouse webhooks say:

If you provide a secret when you create the Outgoing Webhook, it will include an HTTP header named Clubhouse-Signature. The value of this header is a cryptographic hash encoded in hexadecimal.

The signature is computed by the HMAC-SHA-256 algorithm. The ‘message’ is the HTTP request body encoded in UTF-8. The ‘secret’ is the secret string you provided, also encoded in UTF-8.

Included is a concrete implementation of an echo middleware.

Testing

The go-dog testing framework is used to write descriptive tests. See the go-dog README for a good explanation on how to use the framework.

Tests are run automatically by travis CI on every commit/PR.