{"_id":"@passport-next/passport-openid","_rev":"7-e1e658e15e4c4498beea6044e45bd536","name":"@passport-next/passport-openid","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@passport-next/passport-openid","version":"1.0.0","description":"OpenID authentication strategy for Passport.","keywords":["passport","openid","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/passport-next/passport-openid.git"},"bugs":{"url":"http://github.com/passport-next/passport-openid/issues"},"author":{"name":"Rowan Wookey","email":"admin@rwky.net"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib/passport-openid","dependencies":{"@passport-next/passport-strategy":"1.x.x","openid":"2.x.x"},"devDependencies":{"vows":"0.8.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js test/**/*-test.js"},"engines":{"node":">=6"},"gitHead":"f38b3b88cdf69796ae1afd9cce720bd2e0cd7d22","homepage":"https://github.com/passport-next/passport-openid#readme","_id":"@passport-next/passport-openid@1.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.8.0","_npmUser":{"name":"rwky","email":"admin@rwky.net"},"dist":{"integrity":"sha512-W9uj4Ui/ZK/iBUNzSNxPWDQ8wCD1tUddGEVSGm0FN0B7ewo3yBQLGMoW3i3UqcwEzxdyGbAj06ohAhNQIXC4VA==","shasum":"d3b5e067a9aa1388ed172ab7cc02c39b8634283d","tarball":"https://registry.npmjs.org/@passport-next/passport-openid/-/passport-openid-1.0.0.tgz","fileCount":9,"unpackedSize":28317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2VnlCRA9TVsSAnZWagAAHGAP/R3m7Ip36nGPjpw2odBV\nuk5fy5L7/vxU3VRQalrzJKlz3ELjRDmV3Cgj7hQmpP8+SmxFaK93d3prvrhz\ndR6XGfmMODmV9n2SXkIBxiYWqEFN11VDXWmZ8n90Hz60gKfjHp62FKeCcYux\nLoTX8qOL3ZTfJ1SMl8ACwS0fMNCALx0tFyQe6TxEH3MNk4dKrmwrY4t349y0\nk40r3k8XckAtj8nN215WxVLyIPW6yCFMusY+dGXghrS392/fr8mpldUZahbF\nSoFiMRCrd6pKkxhswqwNjYjX2GZyG6TcCV+LX9TdHls8/NVSWts4hqHpQnPV\nyKU4ylhfJhpEmxhz11qx50Rs4ONw2xK2SdqHKrwuV7+8+XBRyX+tfN916wbU\n3bGsWn1r8jQ6a70FG1CBYLWcyBcLuANkBsVPbvzj7dmzjRhn5EaJAuzlPFxj\ne9leh/bhon7b7qCqH7NASDqXYARSVlggN/r36X8Zk0UTyzEow+g3cQgOZEjj\n3GDkZEqE3LhwP9pqO86tPWBq2a7CZGoZdM1+Dqb/PkxbxRyHOwKbwHFcWOt3\n/YSzwOVGahq6bXBynSgw+HF7ZzUWlnUgeBEz0WU9T+ls9H+FZuMipf6IDsLB\nBOtWjgOhRbXDUjrPb5lZJwcN9Lax80J2OS7wnNFU1Ne65e+rhosTPsx6IJJd\n+HZi\r\n=Sdfj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0B5cgC3TTXghhq3xb3BzUJA4k1e/k2Pq4fd//qwVEhQIgCZDj61YM2Vq5EYGiQ3TJBIdTb97h9COC7l2ZLFF+7dk="}]},"maintainers":[{"name":"rwky","email":"admin@rwky.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-openid_1.0.0_1534415341742_0.5113031354158546"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-16T10:29:01.497Z","1.0.0":"2018-08-16T10:29:01.893Z","modified":"2024-02-08T11:23:58.921Z"},"maintainers":[{"email":"rowan@qwertee.com","name":"rwkyqwertee"},{"email":"brettz9@yahoo.com","name":"brettz9"},{"email":"adam@hathcock.co.uk","name":"adamhathcock"},{"email":"wildfiction@gmail.com","name":"guyellis"}],"description":"OpenID authentication strategy for Passport.","homepage":"https://github.com/passport-next/passport-openid#readme","keywords":["passport","openid","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/passport-next/passport-openid.git"},"author":{"name":"Rowan Wookey","email":"admin@rwky.net"},"bugs":{"url":"http://github.com/passport-next/passport-openid/issues"},"readme":"# Passport-OpenID\n\n[Passport](https://github.com/passport-next/passport) strategy for authenticating\nwith [OpenID](http://openid.net/).\n\nThis module lets you authenticate using OpenID in your Node.js applications.  By\nplugging into Passport, OpenID authentication can be easily and unobtrusively\nintegrated into any application or framework that supports\n[Connect](http://www.senchalabs.org/connect/)-style middleware, including\n[Express](http://expressjs.com/).\n\n[![NPM version](https://img.shields.io/npm/v/@passport-next/passport-openid.svg)](https://www.npmjs.com/package/@passport-next/passport-openid)\n[![Build Status](https://travis-ci.org/passport-next/passport-openid.svg?branch=master)](https://travis-ci.org/passport-next/passport-openid)\n[![Coverage Status](https://coveralls.io/repos/github/passport-next/passport-openid/badge.svg?branch=master)](https://coveralls.io/github/passport-next/passport-openid?branch=master)\n[![Maintainability](https://api.codeclimate.com/v1/badges/f278170402b42c88db23/maintainability)](https://codeclimate.com/github/passport-next/passport-openid/maintainability)\n[![Dependencies](https://david-dm.org/passport-next/passport-openid.png)](https://david-dm.org/passport-next/passport-openid)\n<!--[![SAST](https://gitlab.com/passport-next/passport-openid/badges/master/build.svg)](https://gitlab.com/passport-next/passport-openid/badges/master/build.svg)-->\n\n\n## Install\n\n    $ npm install @passport-next/passport-openid\n\n## Usage\n\n#### Configure Strategy\n\nThe OpenID authentication strategy authenticates users using an OpenID\nidentifier.  The strategy requires a `validate` callback, which accepts this\nidentifier and calls `done` providing a user.  Additionally, options can be\nsupplied to specify a return URL and realm.\n\n    passport.use(new OpenIDStrategy({\n        returnURL: 'http://localhost:3000/auth/openid/return',\n        realm: 'http://localhost:3000/'\n      },\n      function(identifier, done) {\n        User.findByOpenID({ openId: identifier }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'openid'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.post('/auth/openid',\n      passport.authenticate('openid'));\n\n    app.get('/auth/openid/return', \n      passport.authenticate('openid', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n      \n#### Saving Associations\n\nAssociations between a relying party and an OpenID provider are used to verify\nsubsequent protocol messages and reduce round trips.  In order to take advantage\nof this, an application must store these associations.  This can be done by\nregistering functions with `saveAssociation` and `loadAssociation`.\n\n    strategy.saveAssociation(function(handle, provider, algorithm, secret, expiry_time_in_seconds, done) {\n      // custom storage implementation\n      saveAssoc(handle, provider, algorithm, secret, expiresIn, function(err) {\n        if (err) { return done(err) }\n        return done();\n      });\n    });\n\n    strategy.loadAssociation(function(handle, done) {\n      // custom retrieval implementation\n      loadAssoc(handle, function(err, provider, algorithm, secret) {\n        if (err) { return done(err) }\n        return done(null, provider, algorithm, secret)\n      });\n    });\n\nFor more information about associations, see the [documentation in node-openid](https://github.com/havard/node-openid#storing-association-state).\n\n## Examples\n\nFor a complete, working example, refer to the [signon example](https://github.com/passport-next/passport-openid/tree/master/examples/signon).\n\n## Tests\n\n    $ npm install --dev\n    $ make test\n\n","readmeFilename":"README.md"}