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

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/basicAuth.js