express-json-auth
Run express basic http auth from a user json file.
npm install express-json-auth --save
Usage example:
user.json
"ted": "123321" "bear": "123456"
server.js
var app = auth = ; // default path: process cwd dir + user.json // throughout the appapp; // through a routeapp;
Specific json
...auth = './private/admin.json';...
Object
...users = "ted": "123321" "bear": "123456"auth = ;...
Release notes
- 0.0.1 - First release - Basic auth from a json
License
MIT License (c) Helder Santana