basic-auth-old

0.0.1 • Public • Published

node-basic-auth

Express now has a builtin BasicAuth middleware. See http://expressjs.com/api.html#middleware

Why?

I needed just very basic auth for NodeJS and I couldn't find a module that worked.

To install:

npm install basic-auth-old
var auth = require('basic-auth')({
  name: 'Auth Box Name',
  accounts: [
    'username:password',
    'user2:pass2'
  ]
})

This is by no means a secure system. This is good if you have a page that just needs to prevent some unauthorized access (such as an intranet).

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i basic-auth-old

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • dawnerd