wai-middleware-slack-verify-0.1.0.0: WAI Slack request verification middleware

Copyright(c) 2018 Brandon Hamilton
LicenseMIT
MaintainerBrandon Hamilton <brandon.hamilton@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.SlackVerify

Description

Middleware for WAI that uses signed secrets to verify Slack requests. See https://api.slack.com/docs/verifying-requests-from-slack

Synopsis

Documentation

verifySlackRequest :: SigningSecret -> Middleware Source #

Middleware that will verify an incoming slack request signature using the provided signing secret.

verifySlackRequest' :: SigningSecret -> FailureResponse -> Middleware Source #

Middleware that will verify an incoming slack request signature using the provided signing secret. The failure response handler will be called upon verification errors.

data VerificationFailure Source #

Verification Failure reasons

Constructors

NoSignature

The request does not contain the relevant signature headers

SignatureMismatch

Signature of the request does not match the server generated signature