Middleware for restify to check authentication as per the Heroku Addon specs: basic authentication with username and password stored in
All calls should be protected by HTTP basic auth with the add-on id and password specified in your add-on manifest. – Heroku Add-on Provider API
Install with npm
$ npm install --save heroku-addon-auth
Use with restify
options =log : console;restify = ;server = restify;server;server;
Note that the Authorization Parser needs to be installed before
Compatibility with Express
restify uses the same Middleware function pattern as expresss,
function middleware(req,res,next), which should make it very easily portable to Express and similar servers.
restify-specific requirement is that the Authorization Parser must be used before calling this module.
Find a bug? Have a feature request? Please create an Issue.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality,
docs in the command line to build the docs with Verb.
Pull requests are also encouraged, and if you find this project useful please consider "starring" it to show your support! Thanks!
Copyright (c) 2014 Andreas Pizsa, contributors.
This file was generated by verb-cli on September 02, 2014.