Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / connect / lib / middleware / basicAuth.js
1 /*!
2  * Connect - basicAuth
3  * Copyright(c) 2010 Sencha Inc.
4  * Copyright(c) 2011 TJ Holowaychuk
5  * MIT Licensed
6  */
7
8 /**
9  * Basic Auth:
10  *
11  * Enfore basic authentication by providing a `callback(user, pass)`,
12  * which must return `true` in order to gain access. Alternatively an async
13  * method is provided as well, invoking `callback(user, pass, callback)`. Populates
14  * `req.user`. The final alternative is simply passing username / password
15  * strings.
16  *
17  * See [basic-auth-connect](https://github.com/expressjs/basic-auth-connect)
18  *
19  * @param {Function|String} callback or username
20  * @param {String} realm
21  * @api public
22  */
23
24 module.exports = require('basic-auth-connect');