diff --git a/README.md b/README.md index d41bf91..8a1bff1 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,9 @@ app.configure(function () { var nodeSSPIObj = new nodeSSPI({ retrieveGroups: true }); - nodeSSPIObj.authenticate(req, res); - res.finished || next(); + nodeSSPIObj.authenticate(req, res, function(err){ + res.finished || next(); + }); }); app.use(function (req, res, next) { var out = 'Hello ' + req.connection.user + '! You belong to following groups: