Paquet : node-basic-auth (2.0.1-2)
Liens pour node-basic-auth
Ressources Debian :
- Rapports de bogues
- Developer Information
- Journal des modifications Debian
- Fichier de licence
- Suivis des correctifs pour Debian
Télécharger le paquet source node-basic-auth :
- [node-basic-auth_2.0.1-2.dsc]
- [node-basic-auth_2.0.1.orig.tar.gz]
- [node-basic-auth_2.0.1-2.debian.tar.xz]
Responsables :
Ressources externes :
- Page d'accueil [github.com]
Paquets similaires :
Generic basic auth Authorization header field parser for whatever
nodejs basic auth parser module. This package is used as a dependency for node web applications that require a simple authentication mechanism.
API
var auth = require('basic-auth')
auth(req)
Get the basic auth credentials from the given request. The Authorization header is parsed and if the header is invalid, undefined is returned, otherwise an object with name and pass properties.
auth.parse(string)
Parse a basic auth authorization header string. This will return an object with name and pass properties, or undefined if the string is invalid.
Example
Pass a Node.js request object to the module export. If parsing fails undefined is returned, otherwise an object with .name and .pass.
var auth = require('basic-auth') var user = auth(req) // => { name: 'something', pass: 'whatever' }
A header string from any other location can also be parsed with auth.parse, for example a Proxy-Authorization header:
var auth = require('basic-auth') var user = auth.parse(req.getHeader('Proxy-Authorization'))
Autres paquets associés à node-basic-auth
|
|
|
|
-
- dep: node-safe-buffer (>= 5.1.2)
- Safer Node.js Buffer API
-
- dep: nodejs (>= 6)
- E/S par événement pour le moteur JavaScript V8
Télécharger node-basic-auth
Architecture | Taille du paquet | Espace occupé une fois installé | Fichiers |
---|---|---|---|
all | 5,6 ko | 21,0 ko | [liste des fichiers] |