{"_id":"passport-github2","_rev":"14-c21f3948d5cec691a4c88fce0904d16b","name":"passport-github2","description":"GitHub authentication strategy for Passport.","dist-tags":{"latest":"0.1.12"},"versions":{"0.1.8":{"name":"passport-github2","version":"0.1.8","description":"GitHub authentication strategy for Passport.","keywords":["passport","github","auth","authn","authentication","identity"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"contributors":[{"name":"Fred Chien","email":"cfsghost@gmail.com"}],"repository":{"type":"git","url":"http://github.com/cfsghost/passport-github.git"},"bugs":{"url":"http://github.com/cfsghost/passport-github/issues"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"passport-oauth2":"1.x.x"},"devDependencies":{"mocha":"1.x.x","chai":"1.x.x"},"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter spec --require test/bootstrap/node test/*.test.js"},"gitHead":"07a5b101cca8d7d71a32a78caccd0910f71a7250","homepage":"https://github.com/cfsghost/passport-github","_id":"passport-github2@0.1.8","_shasum":"594d0dc90cf9645cc9e3ba45a04b25dd96f4e3d0","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"fredchien","email":"cfsghost@gmail.com"},"maintainers":[{"name":"fredchien","email":"cfsghost@gmail.com"}],"dist":{"shasum":"594d0dc90cf9645cc9e3ba45a04b25dd96f4e3d0","tarball":"https://registry.npmjs.org/passport-github2/-/passport-github2-0.1.8.tgz","integrity":"sha512-y0Lxxp/scavC1b9Qi/n+68D0K/dIdwYbL641mt2q03XNICcjyU3zzjF2kAIxjFP90djPKwd+9CMeCtPWgN7rUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClUa1TpkepZ21ttUwfyQ7bJqvjllywwfBbDgNijl3UiAIhAJF+PJLsPI2KSq1HKnoMvTVg15N36E8icvT9KS+3jC1v"}]},"directories":{}},"0.1.9":{"name":"passport-github2","version":"0.1.9","description":"GitHub authentication strategy for Passport.","keywords":["passport","github","auth","authn","authentication","identity"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"contributors":[{"name":"Fred Chien","email":"cfsghost@gmail.com"}],"repository":{"type":"git","url":"http://github.com/cfsghost/passport-github.git"},"bugs":{"url":"http://github.com/cfsghost/passport-github/issues"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"passport-oauth2":"1.x.x"},"devDependencies":{"mocha":"1.x.x","chai":"1.x.x"},"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter spec --require test/bootstrap/node test/*.test.js"},"gitHead":"10d2ed58a6513fa8f27c3a230914cf578a4a831e","homepage":"https://github.com/cfsghost/passport-github","_id":"passport-github2@0.1.9","_shasum":"0d730d55b5f9f6d051dba6b640f1be5a1cbba35c","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"fredchien","email":"cfsghost@gmail.com"},"maintainers":[{"name":"fredchien","email":"cfsghost@gmail.com"}],"dist":{"shasum":"0d730d55b5f9f6d051dba6b640f1be5a1cbba35c","tarball":"https://registry.npmjs.org/passport-github2/-/passport-github2-0.1.9.tgz","integrity":"sha512-wK+JT+KFF0gs2TGKqA0TzC8inpsMvia0vtxXFEpwdfMMysRKFqYMROWKu7yj9x1QVFUPdVQTSrPTTxTP3rl8Og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvE40e3So8Buh53SDsjq6de4ueV8/B8ntQIyeRS5tD/gIhALW6FBIUovn4EC7dqHGcKP05Q+nem/U462U2fHez+BBl"}]},"directories":{}},"0.1.10":{"name":"passport-github2","version":"0.1.10","description":"GitHub authentication strategy for Passport.","keywords":["passport","github","auth","authn","authentication","identity"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"contributors":[{"name":"Fred Chien","email":"cfsghost@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/cfsghost/passport-github.git"},"bugs":{"url":"http://github.com/cfsghost/passport-github/issues"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"passport-oauth2":"1.x.x"},"devDependencies":{"mocha":"1.x.x","chai":"1.x.x"},"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter spec --require test/bootstrap/node test/*.test.js"},"gitHead":"d572f18d0031c2bb891bf7a966eb4d5d4211381b","homepage":"https://github.com/cfsghost/passport-github#readme","_id":"passport-github2@0.1.10","_shasum":"50a21c1e95b83113e4da32c81c2c1a64429bb5bd","_from":".","_npmVersion":"3.3.12","_nodeVersion":"2.4.0","_npmUser":{"name":"fredchien","email":"cfsghost@gmail.com"},"maintainers":[{"name":"fredchien","email":"cfsghost@gmail.com"}],"dist":{"shasum":"50a21c1e95b83113e4da32c81c2c1a64429bb5bd","tarball":"https://registry.npmjs.org/passport-github2/-/passport-github2-0.1.10.tgz","integrity":"sha512-RMe6AmX1cLTUIRz1PXT7q9790TUSL94odDRsITqT5LY6phYeVhQcPciVPISrhjHFdwrQEyJ5gUY22R6477k8hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3QHvlJs1xy4CAnaElg0rMu6r8JB+gbKGRZvGmai7kcAIgA2YvbXq2HwSnKSQgJHtOUVN0R7TaKAD/k0i7/IVK438="}]},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/passport-github2-0.1.10.tgz_1456800722182_0.8619182989932597"},"directories":{}},"0.1.11":{"name":"passport-github2","version":"0.1.11","description":"GitHub authentication strategy for Passport.","keywords":["passport","github","auth","authn","authentication","identity"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"contributors":[{"name":"Fred Chien","email":"cfsghost@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/cfsghost/passport-github.git"},"bugs":{"url":"http://github.com/cfsghost/passport-github/issues"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"passport-oauth2":"1.x.x"},"devDependencies":{"mocha":"1.x.x","chai":"1.x.x"},"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter spec --require test/bootstrap/node test/*.test.js"},"gitHead":"e36a2791e92fdca344592b0af9af665c7546cc22","homepage":"https://github.com/cfsghost/passport-github#readme","_id":"passport-github2@0.1.11","_shasum":"c92b56f3c38a44e766aac7e9e7c1384c5e93c999","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"fredchien","email":"cfsghost@gmail.com"},"dist":{"shasum":"c92b56f3c38a44e766aac7e9e7c1384c5e93c999","tarball":"https://registry.npmjs.org/passport-github2/-/passport-github2-0.1.11.tgz","integrity":"sha512-THaD5Baqc3b4PRFtvAJNGm+dfzSopMQ3Mw3txK9cOfnTEYYmd51N+dHIjk2aU3iR2cK/U807/YxxrFlblnhKKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGBJ1rfVvI/FEoO26UWDVVWYAgvzyhLDjMF4RD0As3zSAiEA/LK/gy41WNEtEZTR0FLTg1/ARJj6VF70XJZY+ThpWLY="}]},"maintainers":[{"name":"fredchien","email":"cfsghost@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-github2-0.1.11.tgz_1506487309831_0.6989901196211576"},"directories":{}},"0.1.12":{"name":"passport-github2","version":"0.1.12","description":"GitHub authentication strategy for Passport.","keywords":["passport","github","auth","authn","authentication","identity"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"contributors":[{"name":"Fred Chien","email":"cfsghost@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/cfsghost/passport-github.git"},"bugs":{"url":"http://github.com/cfsghost/passport-github/issues"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"passport-oauth2":"1.x.x"},"devDependencies":{"mocha":"1.x.x","chai":"1.x.x"},"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter spec --require test/bootstrap/node test/*.test.js"},"gitHead":"2024fe1fef69dee71f73066702ed5412b7c5b617","homepage":"https://github.com/cfsghost/passport-github#readme","_id":"passport-github2@0.1.12","_nodeVersion":"13.6.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-3nPUCc7ttF/3HSP/k9sAXjz3SkGv5Nki84I05kSQPo01Jqq1NzJACgMblCK0fGcv9pKCG/KXU3AJRDGLqHLoIw==","shasum":"a72ebff4fa52a35bc2c71122dcf470d1116f772c","tarball":"https://registry.npmjs.org/passport-github2/-/passport-github2-0.1.12.tgz","fileCount":6,"unpackedSize":10752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefXx5CRA9TVsSAnZWagAAXZ8P/AoiMK+8ar5QcHkmRexh\nZvpUbEwYf9iOtS15AcsTA0Huv9ktSEwiy5EozfYTGIm933v93VjnLSIXnKAt\n53R2J8rAhYWwcvwG2poP21pjmeZhRXaplLZ18iKFdKeNReqaAUPL5Whr5XbW\nVQrHfAdg38c0RmKIl5CHYT9rdAv6e9lbfmClfuQ2LIfG67CU9orKo2L9QjwT\nM7kr0NCBXlI8xFXoIEAjFDNFxnBaiPEONqOLxxBLChKJ3WoJ4VlSpjtp6aQc\nUCDBtQBtLUnK+LLx1n3a833SQl24Q/ta91VS3bqqU/r3oYInkjvSRu8XgWDX\nO+RndlIhm2jdt51z2QBqwqDoJSPbpOrhznyhdo5drEyfuoxf4b5Np/V3nTeG\n2bUUwbWDNU1PeTy7xCTYiYlxUC8U0uIl/dB/+bfwoLTr32v4CC3OGhbnfFhZ\n8OGaLJyKkC3UfNCA3iNGkbWyRUhTK0Q43CCM8lFVGldT2w49ZJrEJiZIzpVH\nYCUAE0yvdQunrK9DGu4v9QmvYHKKAVrazB8ViQ45vSevDXJM+ioyUoOcxMhY\nEg6D3buwaFq5sjb44684JtwnEAFa1lMdGFnEABP8sOQ0yDon2D3JrrVRPRgZ\nvZrX1O64IYQmd5xQSUHRkHChUDsnY0Lib0kklwttTEe4NJGiTx1SnJRvOqRC\nm0JK\r\n=G/7D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEczMwIxIek19nFdn+Dwa0LO6OenCuM0NGHED5y4qU8NAiBuJ/Iz37LQrDPU6Bx6a3t3hBkxUSKNJxXTleItke0UYQ=="}]},"maintainers":[{"name":"fredchien","email":"cfsghost@gmail.com"}],"_npmUser":{"name":"fredchien","email":"cfsghost@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-github2_0.1.12_1585282169541_0.37065804359470245"},"_hasShrinkwrap":false}},"readme":"# Passport-GitHub2\n\nThe author of Passport-Github has not maintained the original module for a long time. Features in his module don't work since Github upgraded their API to version 3.0.  We forked it and re-published it to NPM with a new name `passport-github2`.\n\n[Passport](http://passportjs.org/) strategy for authenticating with [GitHub](https://github.com/)\nusing the OAuth 2.0 API.\n\nThis module lets you authenticate using GitHub in your Node.js applications.\nBy plugging into Passport, GitHub 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## Installation\n\n```shell\n$ npm install passport-github2\n```\n\n## Usage\n\n#### Configure Strategy\n\nThe GitHub authentication strategy authenticates users using a GitHub account\nand OAuth 2.0 tokens.  The strategy requires a `verify` callback, which accepts\nthese credentials and calls `done` providing a user, as well as `options`\nspecifying a client ID, client secret, and callback URL.\n\n```javascript\npassport.use(new GitHubStrategy({\n    clientID: GITHUB_CLIENT_ID,\n    clientSecret: GITHUB_CLIENT_SECRET,\n    callbackURL: \"http://127.0.0.1:3000/auth/github/callback\"\n  },\n  function(accessToken, refreshToken, profile, done) {\n    User.findOrCreate({ githubId: profile.id }, function (err, user) {\n      return done(err, user);\n    });\n  }\n));\n```\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'github'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n```javascript\napp.get('/auth/github',\n  passport.authenticate('github', { scope: [ 'user:email' ] }));\n\napp.get('/auth/github/callback', \n  passport.authenticate('github', { failureRedirect: '/login' }),\n  function(req, res) {\n    // Successful authentication, redirect home.\n    res.redirect('/');\n  });\n```\n\n## Examples\n\nFor a complete, working example, refer to the [login example](https://github.com/cfsghost/passport-github/tree/master/examples/login).\n\n## Tests\n\n```shell\n$ npm install --dev\n$ make test\n```\n\n[![Build Status](https://secure.travis-ci.org/cfsghost/passport-github.png)](http://travis-ci.org/cfsghost/passport-github)\n\n## Credits\n\n  - [Jared Hanson](http://github.com/jaredhanson)\n  - [Fred Chien](http://github.com/cfsghost)\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2011-2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>\n\n","maintainers":[{"name":"fredchien","email":"cfsghost@gmail.com"}],"time":{"modified":"2022-06-23T12:39:33.538Z","created":"2014-12-11T19:10:51.476Z","0.1.8":"2014-12-11T19:10:51.476Z","0.1.9":"2014-12-11T19:16:46.383Z","0.1.10":"2016-03-01T02:52:03.858Z","0.1.11":"2017-09-27T04:41:49.910Z","0.1.12":"2020-03-27T04:09:29.665Z"},"homepage":"https://github.com/cfsghost/passport-github#readme","keywords":["passport","github","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git+ssh://git@github.com/cfsghost/passport-github.git"},"contributors":[{"name":"Fred Chien","email":"cfsghost@gmail.com"}],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"bugs":{"url":"http://github.com/cfsghost/passport-github/issues"},"readmeFilename":"README.md","users":{"nxc":true,"miloc":true,"archcorsair":true,"brandons42":true}}