{"_id":"passport-session","_rev":"5-33f017edb4302e3bdbe5c12ef6806aa5","name":"passport-session","description":"Local username and password with sessionId authentication strategy for Passport.","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"passport-session","version":"1.0.0","description":"Local username and password with sessionId authentication strategy for Passport.","keywords":["passport","local","auth","authn","authentication","username","password"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-session.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-session/issues"},"license":"MIT","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"passport-strategy":"1.x.x"},"devDependencies":{"mocha":"1.x.x","chai":"1.x.x","chai-passport-strategy":"0.1.x"},"engines":{"node":">= 0.4.0"},"scripts":{"test":"mocha --reporter spec --require test/bootstrap/node test/*.test.js"},"gitHead":"5aa110093eeeff36f8202b74ecbba877e1fbb1b0","homepage":"https://github.com/jaredhanson/passport-session#readme","_id":"passport-session@1.0.0","_shasum":"ef5f20d23ff64f7e3d42936d37ef317c476335d4","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"rbaumier","email":"baumier.romain@gmail.com"},"dist":{"shasum":"ef5f20d23ff64f7e3d42936d37ef317c476335d4","tarball":"https://registry.npmjs.org/passport-session/-/passport-session-1.0.0.tgz","integrity":"sha512-I73Mj/EkszQVzNXyH1VlYiPZ1uyE6NiSmit5UeAnVPH5CkJDpYmiOHbNK9gYfwAxUnlFRtZErudD/UGIWJDyyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYkY8qczB8Jk79A9E+IEUh3HOpGuflzpzH9R2NchB1xwIgOYWc8i/sJScMVylJwvYgwfTBx+fRBTmaJ0/kHHkDRls="}]},"maintainers":[{"name":"rbaumier","email":"baumier.romain@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/passport-session-1.0.0.tgz_1476692319063_0.2567769940942526"}},"1.0.1":{"name":"passport-session","version":"1.0.1","description":"Local username and password with sessionId authentication strategy for Passport.","keywords":["passport","local","auth","authn","authentication","username","password"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-session.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-session/issues"},"license":"MIT","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"passport-strategy":"1.x.x"},"devDependencies":{"mocha":"1.x.x","chai":"1.x.x","chai-passport-strategy":"0.1.x"},"engines":{"node":">= 0.4.0"},"scripts":{"test":"mocha --reporter spec --require test/bootstrap/node test/*.test.js"},"gitHead":"a4200c27fcce0e99a404babbc8cf13cbbdb9bb5a","homepage":"https://github.com/jaredhanson/passport-session#readme","_id":"passport-session@1.0.1","_shasum":"082cd1bf0debdc843b471fa736b2efa8f18cff5f","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"rbaumier","email":"baumier.romain@gmail.com"},"dist":{"shasum":"082cd1bf0debdc843b471fa736b2efa8f18cff5f","tarball":"https://registry.npmjs.org/passport-session/-/passport-session-1.0.1.tgz","integrity":"sha512-yk4DK/0z9bP0dRvOJkdutD7lVKRB1ynvf3VqBWNIojgH+C/Rpmg77QHZ4X5KBhxf4dSH76aXYcLUfKv+Vz1QsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA343joKPZKSnH2WU2VGh5wvyf1i+WvjeR8Bmw5QvwBAAiEAlRMOOjp3orUQ6Y7f1iXLgUnZcMzJb9H7Ku6bIOZvqfU="}]},"maintainers":[{"name":"rbaumier","email":"baumier.romain@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/passport-session-1.0.1.tgz_1476692496753_0.5376719816122204"}},"1.0.2":{"name":"passport-session","version":"1.0.2","description":"Local username and password with sessionId authentication strategy for Passport.","keywords":["passport","local","auth","authn","authentication","username","password"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-session.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-session/issues"},"license":"MIT","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"passport-strategy":"1.x.x"},"devDependencies":{"mocha":"1.x.x","chai":"1.x.x","chai-passport-strategy":"0.1.x"},"engines":{"node":">= 0.4.0"},"scripts":{"test":"mocha --reporter spec --require test/bootstrap/node test/*.test.js"},"gitHead":"afb45743d2aa4f6462ecdbd3550749b4b3a552b0","homepage":"https://github.com/jaredhanson/passport-session#readme","_id":"passport-session@1.0.2","_shasum":"28abf357b0958e7c704164a3f539bd08cb9851db","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"rbaumier","email":"baumier.romain@gmail.com"},"dist":{"shasum":"28abf357b0958e7c704164a3f539bd08cb9851db","tarball":"https://registry.npmjs.org/passport-session/-/passport-session-1.0.2.tgz","integrity":"sha512-VhSl6JYZf+cbERfjrVFrLvaGn5Y54Gw61IdpxmSRdxDuFkbafYmC0rfTJ46K+vlKyoDmVRT/uFP6piAAjOXytQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6qcY/GNHNZGPNLnbKTYa5TDFMaLbsL/aSax/ndAvhRgIgXwbZ8N7Rw/7G9Q1SRtQ5iTCX6NAtRAYdYHqlVaR0vdE="}]},"maintainers":[{"name":"rbaumier","email":"baumier.romain@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/passport-session-1.0.2.tgz_1476700395798_0.11355267721228302"}}},"readme":"# passport-session\n\n## Install\n\n```bash\n$ npm install passport-session\n```\n\n## Usage\n\nIt is the same as passport-local but with a sessionId. It allow you to authenticate your users on differents sessions (or \"rooms\").\n\n#### Configure Strategy\n\n```js\npassport.use(new LocalStrategy(\n  function(email, password, sessionId, done) {\n    User.findOne({ email: email, sessionId: sessionId }, function (err, user) {\n      if (err) { return done(err); }\n      if (!user) { return done(null, false); }\n      if (!user.verifyPassword(password)) { return done(null, false); }\n      return done(null, user);\n    });\n  }\n));\n```\n\n##### Available Options\n\nThis strategy takes an optional options hash before the function, e.g. `new LocalStrategy({/* options */, callback})`.\n\nThe available options are:\n\n* `emailField` - Optional, defaults to 'email'\n* `passwordField` - Optional, defaults to 'password'\n* `sessionIdField` - Optional, defaults to 'sessionId'\n\nThis fields define the name of the properties in the POST body that are sent to the server.\n\n","maintainers":[{"name":"rbaumier","email":"baumier.romain@gmail.com"}],"time":{"modified":"2022-06-23T13:27:52.377Z","created":"2016-10-17T08:18:40.624Z","1.0.0":"2016-10-17T08:18:40.624Z","1.0.1":"2016-10-17T08:21:38.684Z","1.0.2":"2016-10-17T10:33:17.454Z"},"homepage":"https://github.com/jaredhanson/passport-session#readme","keywords":["passport","local","auth","authn","authentication","username","password"],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-session.git"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"bugs":{"url":"http://github.com/jaredhanson/passport-session/issues"},"license":"MIT","readmeFilename":"README.md"}