Status: Deprecated. No bug reports or pull requests are welcomed for this middleware. However, this middleware will not be removed. Instead, you should use 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.
Basic Auth:
Status: Deprecated. No bug reports or pull requests are welcomed
for this middleware. However, this middleware will not be removed.
Instead, you should use basic-auth.
Enfore basic authentication by providing a
callback(user, pass)
,which must return
true
in order to gain access. Alternatively an asyncmethod is provided as well, invoking
callback(user, pass, callback)
. Populatesreq.user
. The final alternative is simply passing username / passwordstrings.
Simple username and password
Callback verification
Async callback verification, accepting
fn(err, user)
.Source