mandrill-webhook-authenticator

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i mandrill-webhook-authenticator

Weekly Downloads

17

Version

1.0.1

License

MIT

Last publish

Collaborators

  • aigeec