1.0.1 • Published 8 years ago

mandrill-webhook-authenticator v1.0.1

Weekly downloads
14
License
MIT
Repository
github
Last release
8 years ago

mandrill-webhook-authenticator

A small express middleware to authenticate Mandrill inbound web-hooks

Installation

  $ npm install mandrill-webhook-authenticator --save

Usage

var authenticator = require('mandrill-webhook-authenticator');

app.use(authenticator(options));

Options

var options = {
  webhookAuthKey: 'webhooks_auth_key',
  domain: 'http://www.example.com'
};
  • webhookAuthKey: mandrill webhook auth key, used for validating the Mandrill Signature
  • domain: domain of the webhook you set up on Mandrill, used for validating the Mandrill Signature

Tests

npm test

Links

api documentation

jscs Report

jshint Report

Contributing

Use Airbnb jscs style guide.

Add unit tests for any new or changed functionality. Lint and test your code.

Release History

Not yet released.

Legal Stuff

mandrill-webhook-authenticator is Copyright 2016 Aodhagán Collins. All Rights Reserved.

Distributed under MIT License.