clubhouse-webhook

module
v0.0.0-...-77a4966 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2020 License: MIT

README

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.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL