| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
GitHub.Data.Webhooks.Validate
Description
Verification of incomming webhook payloads, as described at https://developer.github.com/webhooks/securing/
Synopsis
- isValidPayload :: Text -> Maybe Text -> ByteString -> Bool
Documentation
Arguments
| :: Text | the secret |
| -> Maybe Text | the hash provided by the remote party
in |
| -> ByteString | the body |
| -> Bool |
Validates a given payload against a given HMAC hexdigest using a given
secret.
Returns True iff the given hash is non-empty and it's a valid signature of
the payload.