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
Enfore basic authentication by providing a
callback(user, pass),which must return
truein 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