Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

basic-auth-old

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-auth-old

http basic auth

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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).

FAQs

Package last updated on 29 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc