From 072556854e09713a38bc4e21f6a1735328dafcb6 Mon Sep 17 00:00:00 2001 From: abbr Date: Fri, 11 Jul 2014 14:02:37 -0700 Subject: [PATCH] changed api to async Signed-off-by: abbr --- README.md | 7 ++++--- index.js | 7 +++++-- package.json | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) 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: