Info in authenticate callback.
nickpoorman opened this issue · comments
This is strange:
passport.authenticate('basic', function(err, user, info) {
console.log("info is: " + util.inspect(info));
}
Maybe info isn't being passed because it outputs: 'Basic realm="Users"'
and when I change info param to anything else if fails silently.
I think this strategy doesn't support info yet. L88 should be changed to:
function verified(err, user, info) {
if (err) { return self.error(err); }
if (!user) { return self.fail(self._challenge()); }
self.success(user, info);
}