Sha256: 200386c32658c9be7eb1420a8ed66bf6f09ddd93331d3f34debb6419fcd07702
Contents?: true
Size: 681 Bytes
Versions: 17
Compression:
Stored size: 681 Bytes
Contents
/*! * Connect - basicAuth * Copyright(c) 2010 Sencha Inc. * Copyright(c) 2011 TJ Holowaychuk * MIT Licensed */ /** * Basic Auth: * * Enfore basic authentication by providing a `callback(user, pass)`, * which must return `true` in order to gain access. Alternatively an async * method is provided as well, invoking `callback(user, pass, callback)`. Populates * `req.user`. The final alternative is simply passing username / password * strings. * * See [basic-auth-connect](https://github.com/expressjs/basic-auth-connect) * * @param {Function|String} callback or username * @param {String} realm * @api public */ module.exports = require('basic-auth-connect');
Version data entries
17 entries across 17 versions & 2 rubygems