{"_id":"passport-browserid","_rev":"14-66e8a5c6f7f683570a897eccf8e70ae6","name":"passport-browserid","description":"BrowserID authentication strategy for Passport.","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"passport-browserid","version":"0.1.0","description":"BrowserID authentication strategy for Passport.","author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"contributors":[{"name":"Jared Hanson","email":"jaredhanson@gmail.com"},{"name":"Leo McArdle","email":"leomcardle@gmail.com"}],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-browserid.git"},"main":"./lib/passport-browserid","dependencies":{"passport":">= 0.1.3"},"engines":{"node":">= 0.4.0"},"keywords":["passport","browserid","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-browserid@0.1.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"d5c7c6f7bc3384e597d113efdf1e9f8d1f37172a","tarball":"https://registry.npmjs.org/passport-browserid/-/passport-browserid-0.1.0.tgz","integrity":"sha512-LNolGsO5YkTgJplwEdBhc70JkP27oxO7yjdljg5mGd2Ce0I3YqFqQOA1JG4fG/+mHxerK7iKq1qSbgA7QYLYXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+9GG/Yd7bbUD+sXv9cN0k6Jg2O8Po40JuHiAJIKGvNAIhAL8UU7StfghEkTVp3TeQ1UcjOR4o8GXaAzktaw6XHsiY"}]},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.1":{"name":"passport-browserid","version":"0.1.1","description":"BrowserID authentication strategy for Passport.","author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"contributors":[{"name":"Jared Hanson","email":"jaredhanson@gmail.com"},{"name":"Leo McArdle","email":"leomcardle@gmail.com"}],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-browserid.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-browserid/issues"},"main":"./lib/passport-browserid","dependencies":{"pkginfo":"0.2.x","passport":"~0.1.3"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"keywords":["passport","browserid","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-browserid@0.1.1","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.6.11","_defaultsLoaded":true,"dist":{"shasum":"e21ad05c2387abbce2db7faa9fa3239952ac461f","tarball":"https://registry.npmjs.org/passport-browserid/-/passport-browserid-0.1.1.tgz","integrity":"sha512-2fJg4adxpancA7Xoyi5B/lfAFL9I44ie+pXFlIo9B7nx3oKsWrJI33W0dTgRlaoCbSjpnm1xq1e4HE0vRBDpYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBTdcQEUAepQ58aeYsL/R8+x/Q9zIvPPE0I28seBsS6rAiEAgmmFmBfZAq4jF4gS27mn7yTa1JIuPnvZCQaf10JYG9U="}]},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.2":{"name":"passport-browserid","version":"0.1.2","description":"BrowserID authentication strategy for Passport.","author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"contributors":[{"name":"Jared Hanson","email":"jaredhanson@gmail.com"},{"name":"Leo McArdle","email":"leomcardle@gmail.com"}],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-browserid.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-browserid/issues"},"main":"./lib/passport-browserid","dependencies":{"pkginfo":"0.2.x","passport":"~0.1.3"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"keywords":["passport","browserid","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-browserid@0.1.2","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.6.11","_defaultsLoaded":true,"dist":{"shasum":"688b9ebb9dd481d61a9b4d370b75876a4e93c802","tarball":"https://registry.npmjs.org/passport-browserid/-/passport-browserid-0.1.2.tgz","integrity":"sha512-l3MNscxvAcyJEj5sEx7xjedJAUi4UGwJp4TVKZGLB2Qk/U2WIewxYFyPv7jE3GNCyF3XZQ6iRQGnX/pS0vjDaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6GrBCMgpSlFcGjivjMtdxmeeejZ6dJ8FKGIGUIklMKAIhANZKJpWK6MAN61VmYiVTrCpnIm9VLPEmHN+VCUBcE7co"}]},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.3":{"name":"passport-browserid","version":"0.1.3","description":"BrowserID authentication strategy for Passport.","author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"contributors":[{"name":"Jared Hanson","email":"jaredhanson@gmail.com"},{"name":"Leo McArdle","email":"leomcardle@gmail.com"}],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-browserid.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-browserid/issues"},"main":"./lib/passport-browserid","dependencies":{"pkginfo":"0.2.x","passport":"~0.1.3"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"keywords":["passport","browserid","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-browserid@0.1.3","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"1874e81651c9f5d3def15d37c7f7fab4f64447ce","tarball":"https://registry.npmjs.org/passport-browserid/-/passport-browserid-0.1.3.tgz","integrity":"sha512-6UCHq22qNOaWswuI7BSb1H+RNAFErGnuLb1HgmGVOqWqyJyvaoFVbs9cOLpxn9vhUt9iQExgtfffcD4OQ6VsQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKn0ibsyXVgx/SOoWlPmu781xCRoqKjeTsrQhPYflDmAIhAL1ZT93s7e22EcyvKlomRaIWpV+Amtj9LdGwvBhQ8tLR"}]},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.4":{"name":"passport-browserid","version":"0.1.4","description":"BrowserID authentication strategy for Passport.","keywords":["passport","browserid","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-browserid.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-browserid/issues"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"contributors":[{"name":"Jared Hanson","email":"jaredhanson@gmail.com"},{"name":"Leo McArdle","email":"leomcardle@gmail.com"}],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib/passport-browserid","dependencies":{"pkginfo":"0.2.x","passport":"~0.1.3"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"_id":"passport-browserid@0.1.4","dist":{"shasum":"5924860e70e7fe98fcfdd4925ec4edc45f9709f2","tarball":"https://registry.npmjs.org/passport-browserid/-/passport-browserid-0.1.4.tgz","integrity":"sha512-COgkVJTW9lEnUexSlgOx7gjsP9Qz4lNGYfdzzDR+HAXQZ2MUaLOLSGB18OPotAsX3iEQvWCtvERj/DA8kHx3bg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/UCLHNs6Qt35aCJJn0OLZdDAL4WZifuyPOPfTK9N2NQIgdQQFFmG/3SFobUU6fdG5wP/R2f+3G5Hm/SnoDcY5uTA="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.2.0":{"name":"passport-browserid","version":"0.2.0","description":"BrowserID authentication strategy for Passport.","keywords":["passport","browserid","auth","authn","authentication","identity"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"contributors":[{"name":"Jared Hanson","email":"jaredhanson@gmail.com"},{"name":"Leo McArdle","email":"leomcardle@gmail.com"}],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-browserid.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-browserid/issues"},"license":"MIT","licenses":[{"type":"MIT","url":"http://opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"browserid-local-verify":"^0.5.0","passport-strategy":"1.x.x"},"devDependencies":{"make-node":"0.3.x","mocha":"2.x.x","chai":"2.x.x","chai-passport-strategy":"1.x.x","sinon-chai":"^2.8.0","sinon":"^1.17.0"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha --require test/bootstrap/node test/*.test.js"},"gitHead":"61a5dc405769d668f12d904434b256e2ed1c3697","homepage":"https://github.com/jaredhanson/passport-browserid#readme","_id":"passport-browserid@0.2.0","_shasum":"f241d503a5db2db0976142b81b9cce264cb5840f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}],"dist":{"shasum":"f241d503a5db2db0976142b81b9cce264cb5840f","tarball":"https://registry.npmjs.org/passport-browserid/-/passport-browserid-0.2.0.tgz","integrity":"sha512-1hGnNRtuhq/7DFNkRjt+4+ZO1yKc7vTmPZzZtPu5eSSCFNGV8dL/itt+sPITqS8JnvBN0beaUTncVE71pOdJvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUqx8aRaI0odwRMaV8fj8cwj1YavU153ldOzCXTp2a0gIhAMkEkMBkK8D9whcYKyFfi/M1CzqWyQzljXtfsYpxfOUX"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/passport-browserid-0.2.0.tgz_1479844442436_0.3591841438319534"}}},"readme":"# passport-browserid\n\n[![Build](https://img.shields.io/travis/jaredhanson/passport-browserid.svg)](https://travis-ci.org/jaredhanson/passport-browserid)\n[![Coverage](https://img.shields.io/coveralls/jaredhanson/passport-browserid.svg)](https://coveralls.io/r/jaredhanson/passport-browserid)\n[![Quality](https://img.shields.io/codeclimate/github/jaredhanson/passport-browserid.svg?label=quality)](https://codeclimate.com/github/jaredhanson/passport-browserid)\n[![Dependencies](https://img.shields.io/david/jaredhanson/passport-browserid.svg)](https://david-dm.org/jaredhanson/passport-browserid)\n\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith [BrowserID](https://developer.mozilla.org/en-US/docs/Mozilla/Persona).\n\nThis module lets you authenticate using BrowserID in your Node.js applications.\nBy plugging into Passport, BrowserID authentication can be easily and\nunobtrusively integrated into any application or framework that supports\n[Connect](http://www.senchalabs.org/connect/)-style middleware, including\n[Express](http://expressjs.com/).\n\n[BrowserID](https://developer.mozilla.org/en-US/docs/Mozilla/Persona) is an\nopen, decentralized protocol for authenticating users based on email addresses,\ndeveloped by [Mozilla](http://www.mozilla.org/).  It is commonly associated with\n[Persona](https://login.persona.org/), the brand used for Mozilla's\nimplementation of BrowserID.  This strategy performs local verification of\nassertions, delivering on BrowserID's promise of ensuring user privacy.\n\n## Install\n\n    $ npm install passport-browserid\n\n## Usage\n\n#### Configure Strategy\n\nThe BrowserID authentication strategy authenticates users using an assertion of\nemail address ownership, obtained via the BrowserID JavaScript API.  The\nstrategy requires a `verify` callback, which accepts an email address and calls\n`cb` providing a user.\n\n    passport.use(new BrowserIDStrategy({\n        audience: 'http://www.example.com'\n      },\n      function(email, cb) {\n        User.findByEmail({ email: email }, function (err, user) {\n          return cb(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'browserid'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.post('/auth/browserid', \n      passport.authenticate('browserid', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n\n## Considerations\n\n#### Deployment\n\nThis module is implemented based on the specifications being developed by [Mozilla Identity](https://wiki.mozilla.org/Identity),\nwhich remain a work-in-progress and are *not* final.  Implementers are\nencouraged to track the progress of these specifications and update update their\nimplementations as necessary.  Furthermore, the implications of relying on\nnon-final specifications should be understood prior to deployment.\n\nWhile the specifications remain under development, it is recommended to use\nMozilla's [Remote Verification API](https://developer.mozilla.org/en-US/docs/Mozilla/Persona/Remote_Verification_API).\nThis functionality is implemented by [passport-persona](https://github.com/jaredhanson/passport-persona).\n\n## Examples\n\nFor a complete, working example, refer to the [signin example](https://github.com/jaredhanson/passport-browserid/tree/master/examples/signin).\n\n## Contributing\n\n#### Tests\n\nThe test suite is located in the `test/` directory.  All new features are\nexpected to have corresponding test cases.  Ensure that the complete test suite\npasses by executing:\n\n```bash\n$ make test\n```\n\n#### Coverage\n\nAll new feature development is expected to have test coverage.  Patches that\nincrese test coverage are happily accepted.  Coverage reports can be viewed by\nexecuting:\n\n```bash\n$ make test-cov\n$ make view-cov\n```\n\n## Support\n\n#### Funding\n\nThis software is provided to you as open source, free of charge.  The time and\neffort to develop and maintain this project is volunteered by [@jaredhanson](https://github.com/jaredhanson).\nIf you (or your employer) benefit from this project, please consider a financial\ncontribution.  Your contribution helps continue the efforts that produce this\nand other open source software.\n\nFunds are accepted via [PayPal](https://paypal.me/jaredhanson), [Venmo](https://venmo.com/jaredhanson),\nand [other](http://jaredhanson.net/pay) methods.  Any amount is appreciated.\n\n## Credits\n\n  - [Jared Hanson](http://github.com/jaredhanson)\n  - [Leo McArdle](https://github.com/LeoMcA)\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2011-2016 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>\n","maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}],"time":{"modified":"2022-06-23T12:21:51.141Z","created":"2011-11-25T21:51:13.231Z","0.1.0":"2011-11-25T21:51:13.820Z","0.1.1":"2012-03-05T02:55:12.187Z","0.1.2":"2012-04-09T02:53:56.170Z","0.1.3":"2012-05-28T22:01:30.381Z","0.1.4":"2013-05-25T03:37:24.892Z","0.2.0":"2016-11-22T19:54:02.714Z"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-browserid.git"},"homepage":"https://github.com/jaredhanson/passport-browserid#readme","keywords":["passport","browserid","auth","authn","authentication","identity"],"contributors":[{"name":"Jared Hanson","email":"jaredhanson@gmail.com"},{"name":"Leo McArdle","email":"leomcardle@gmail.com"}],"bugs":{"url":"http://github.com/jaredhanson/passport-browserid/issues"},"license":"MIT","readmeFilename":"README.md"}