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.remoteUser. The final alternative is simply passing username / password
strings.
Enfore basic authentication by providing a
callback(user, pass), which must returntruein order to gain access. Alternatively an async method is provided as well, invokingcallback(user, pass, callback). Populatesreq.remoteUser. The final alternative is simply passing username / password strings.Examples