{"_id":"github-oauth","_rev":"28-a31a4809b46d40266938de91f8bd05d1","name":"github-oauth","description":"simple functions for doing oauth login with github","dist-tags":{"latest":"0.2.2"},"versions":{"0.0.1":{"name":"github-oauth","description":"simple functions for doing oauth login with github","keywords":["github","oauth"],"version":"0.0.1","author":{"name":"max ogden","email":"max@maxogden.com"},"dependencies":{"request":"2.12.0"},"engines":{"node":"v0.8.x"},"_id":"github-oauth@0.0.1","dist":{"shasum":"af1903e8d3c07749d62a0c86d8409dc0d85e521c","tarball":"https://registry.npmjs.org/github-oauth/-/github-oauth-0.0.1.tgz","integrity":"sha512-J6ExS9kolwmcsDUoB0VUAhABpqKyMgOSys34J610QnN45h8SQFQUuKJjhnmDn8QZcMdFG3RD/TQ9/S+F2tT9Og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFNoBIp2MhtgM25YG+DEJHd0R9RsyLn1yGOFy3Qe89XAIgVhZ2rUnf3u8HlkBzcM0qVWwonsXYlWKceLZleINO9rU="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"directories":{}},"0.0.2":{"name":"github-oauth","description":"simple functions for doing oauth login with github","keywords":["github","oauth"],"version":"0.0.2","repository":{"type":"git","url":"git://github.com/maxogden/github-oauth.git"},"author":{"name":"max ogden","email":"max@maxogden.com"},"dependencies":{"request":"2.12.0"},"engines":{"node":"v0.8.x"},"_id":"github-oauth@0.0.2","dist":{"shasum":"774b4a9cb92829fd3027c35520c513a4da5d52aa","tarball":"https://registry.npmjs.org/github-oauth/-/github-oauth-0.0.2.tgz","integrity":"sha512-xUgqmS5CBP8gCTYfFzoXFEJRWProaTuHJ0/Z6prFTVRXVen3JhFskG186VM43JBBVQA7OeY08NDSETqQIGJgLQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKoPe1U/sZzxaIPmztuhm1fWGePVT1bOyaaZVIOu8RkAIgLIa4vGIUh+PuFMYQQ+hYBHfcFPUdYmupz3QMmHrOXh0="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"directories":{}},"0.0.3":{"name":"github-oauth","description":"simple functions for doing oauth login with github","keywords":["github","oauth"],"version":"0.0.3","repository":{"type":"git","url":"git://github.com/maxogden/github-oauth.git"},"author":{"name":"max ogden","email":"max@maxogden.com"},"dependencies":{"request":"2.12.0"},"engines":{"node":"v0.8.x"},"_id":"github-oauth@0.0.3","dist":{"shasum":"7edd013d713fb8fcda9e1c645ec5fe478a2249d4","tarball":"https://registry.npmjs.org/github-oauth/-/github-oauth-0.0.3.tgz","integrity":"sha512-rbxTF1PAU5rbI4/24ZVJoXYa8eQqppOgaUnPlC3tLyPyGMfzLjotFrGG0SRTKJdv77vGsPTMN7YOp66m1ckJag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDk9HXSI/wcZVPgeEEjkdoqtlAtApredBzTEHx5V5hZsAiBQGu/gBxn9CakGKiUi//jBTJONkg2UceIuvQ1clMMORA=="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"directories":{}},"0.0.4":{"name":"github-oauth","description":"simple functions for doing oauth login with github","keywords":["github","oauth"],"version":"0.0.4","repository":{"type":"git","url":"git://github.com/maxogden/github-oauth.git"},"author":{"name":"max ogden","email":"max@maxogden.com"},"dependencies":{"request":"2.12.0"},"engines":{"node":"v0.8.x"},"_id":"github-oauth@0.0.4","dist":{"shasum":"63dba5a2e0ccda91f866e8fc13291e5d69372e29","tarball":"https://registry.npmjs.org/github-oauth/-/github-oauth-0.0.4.tgz","integrity":"sha512-QBsRySiOACQqSptonJgRwzyK8tK6B+GsZyF1uWRQyeV3gu51fv3XvHQ83bPO37P2IgC2rSLumxy/5aHxXengGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEiyVCM7kdD07jTSWzak4ZnvSnRjMzzAUc9I3labub0mAiBRoGESCDHcaIp5XvSKiMv+9yPkpbzjlJx7eM8gXIHtww=="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"directories":{}},"0.1.0":{"name":"github-oauth","description":"simple functions for doing oauth login with github","keywords":["github","oauth"],"version":"0.1.0","repository":{"type":"git","url":"git://github.com/maxogden/github-oauth.git"},"author":{"name":"max ogden","email":"max@maxogden.com"},"dependencies":{"request":"2.12.0"},"engines":{"node":"v0.8.x"},"bugs":{"url":"https://github.com/maxogden/github-oauth/issues"},"homepage":"https://github.com/maxogden/github-oauth","main":"index.js","devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"ISC","_id":"github-oauth@0.1.0","_shasum":"0fc6bb1526ede9d7ca0e608226c698c05813893b","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"dist":{"shasum":"0fc6bb1526ede9d7ca0e608226c698c05813893b","tarball":"https://registry.npmjs.org/github-oauth/-/github-oauth-0.1.0.tgz","integrity":"sha512-AWaKMoYIZCmnZQG0E2r0qG298L3UqPJ4zp6TeOjPMv3OQyEo2nJQakkdRxeNTtG8c7JxtCG+MiI0Zb1k+ixcEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0X8zFLcZufDKgTEAU87IxDIpjcGGI9R30R5kzTNoDPQIgQIDOS6Y0qxFQYT8BW97OsDE0F/NeXxrAooJl5D5JQ3w="}]},"directories":{}},"0.1.1":{"name":"github-oauth","description":"simple functions for doing oauth login with github","keywords":["github","oauth"],"version":"0.1.1","repository":{"type":"git","url":"git://github.com/maxogden/github-oauth.git"},"author":{"name":"max ogden","email":"max@maxogden.com"},"dependencies":{"request":"2.12.0"},"bugs":{"url":"https://github.com/maxogden/github-oauth/issues"},"homepage":"https://github.com/maxogden/github-oauth","main":"index.js","devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"ISC","_id":"github-oauth@0.1.1","_shasum":"025777ef699cd4e2da55ea8daf1c8126b4a9d83c","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"maxogden","email":"max+DONT+EMAIL+ME@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"dist":{"shasum":"025777ef699cd4e2da55ea8daf1c8126b4a9d83c","tarball":"https://registry.npmjs.org/github-oauth/-/github-oauth-0.1.1.tgz","integrity":"sha512-vY8F+iItL5saY66lLeCseAza7jHAMwgpEFhCyJaw8JyfJxZvR9kVf1TcPQ8bzfv9Itcu1g0ylqXxgTjJQjx/gg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvSA2LLwZM3D+oa9HfyTxB/TlS+EZd3WNzSmqklYopfAiB51nEvbf4NH5Vh7IW+4gnNej+k6BMiN/EIsfALAtxcBQ=="}]},"directories":{}},"0.2.0":{"name":"github-oauth","description":"simple functions for doing oauth login with github","keywords":["github","oauth"],"version":"0.2.0","repository":{"type":"git","url":"git://github.com/maxogden/github-oauth.git"},"author":{"name":"max ogden","email":"max@maxogden.com"},"dependencies":{"request":"2.12.0"},"bugs":{"url":"https://github.com/maxogden/github-oauth/issues"},"homepage":"https://github.com/maxogden/github-oauth","main":"index.js","devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"ISC","gitHead":"4048a53a2f2e55dd3ad393de6fc0aa4d659c5dcd","_id":"github-oauth@0.2.0","_shasum":"218a42364463fe9dd7e12136fd497b37e24b7a57","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.28","_npmUser":{"name":"maxogden","email":"max+DONT+EMAIL+ME@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"dist":{"shasum":"218a42364463fe9dd7e12136fd497b37e24b7a57","tarball":"https://registry.npmjs.org/github-oauth/-/github-oauth-0.2.0.tgz","integrity":"sha512-71DDqqjHjzc8V5BYg3HHMtnkJaQP6IU+9xJyGrhfJtZFiCekmJ8Hwreul6eEptRRO/hHOLkbRNjvbLK8LeIVuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtJvgYYQEuhv7cs17uZ1tHYvyjv/w5J0GC1xvgCqkQNQIhANeG9DOh5MmZalnAY3at/ZVF7INBVd8LAkSAYdAMbUxv"}]},"directories":{}},"0.2.1":{"name":"github-oauth","description":"simple functions for doing oauth login with github","keywords":["github","oauth"],"version":"0.2.1","repository":{"type":"git","url":"git://github.com/maxogden/github-oauth.git"},"author":{"name":"max ogden","email":"max@maxogden.com"},"dependencies":{"request":"2.12.0"},"bugs":{"url":"https://github.com/maxogden/github-oauth/issues"},"homepage":"https://github.com/maxogden/github-oauth","main":"index.js","devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"ISC","gitHead":"f1ccfaf415b313a1e3bddf31c15f01c27f0fadac","_id":"github-oauth@0.2.1","_shasum":"38455e9e1739f11d804c757683e528b8568c9785","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"maxogden","email":"max+DONT+EMAIL+ME@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"dist":{"shasum":"38455e9e1739f11d804c757683e528b8568c9785","tarball":"https://registry.npmjs.org/github-oauth/-/github-oauth-0.2.1.tgz","integrity":"sha512-pIUph5aW69dzwSXOvbVfr/8JR4nzFNDdQQykTzobs4RjLwfOt0uQNdcVmXekFljUsji9qy16h95IaMEKPAk71g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICC7WNHhLdhMx9tDdQvX90V8InLFNixn3vSQ9vyCBFSkAiABn2y60WBAo/PQiYbAPMy4e3RgXF12h7Eu2YTfRkYQPA=="}]},"directories":{}},"0.2.2":{"name":"github-oauth","description":"simple functions for doing oauth login with github","keywords":["github","oauth"],"version":"0.2.2","repository":{"type":"git","url":"git://github.com/maxogden/github-oauth.git"},"author":{"name":"max ogden","email":"max@maxogden.com"},"dependencies":{"request":"2.12.0"},"bugs":{"url":"https://github.com/maxogden/github-oauth/issues"},"homepage":"https://github.com/maxogden/github-oauth","main":"index.js","devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"ISC","gitHead":"f0e3aa9f148112e9b59a2b14bb9e05b74853191d","_id":"github-oauth@0.2.2","_shasum":"5b1fb377b7c77d0a2c6a0e00ba104ab3154b7abf","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"dist":{"shasum":"5b1fb377b7c77d0a2c6a0e00ba104ab3154b7abf","tarball":"https://registry.npmjs.org/github-oauth/-/github-oauth-0.2.2.tgz","integrity":"sha512-pu+O3zDNBcgk4BXo/abrCGAe8Pztq3qGPfW0n3g8jaQM07XQDTnhodVIAXm8p/rqwA1CKB8HOKSdKl6r1ZzPQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBsEN7ggtn0XQ94yYcyI9s0unETkWDTemxbRbfFSS/+rAiEA0zcghp4qeNi6MfwX7R4WDGyxOJoYeNYn1e+1Rw/YyfQ="}]},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"directories":{}}},"readme":"# github-oauth\n\nsimple functions for doing oauth login with github. compatible with any node http server that uses handler callbacks that look like `function(req, res) {}`\n\n## usage\n\n```javascript\nvar githubOAuth = require('github-oauth')({\n  githubClient: process.env['GITHUB_CLIENT'],\n  githubSecret: process.env['GITHUB_SECRET'],\n  baseURL: 'http://localhost',\n  loginURI: '/login',\n  callbackURI: '/callback',\n  scope: 'user' // optional, default scope is set to user\n})\n\nrequire('http').createServer(function(req, res) {\n  if (req.url.match(/login/)) return githubOAuth.login(req, res)\n  if (req.url.match(/callback/)) return githubOAuth.callback(req, res)\n}).listen(80)\n\ngithubOAuth.on('error', function(err) {\n  console.error('there was a login error', err)\n})\n\ngithubOAuth.on('token', function(token, serverResponse) {\n  console.log('here is your shiny new github oauth token', token)\n  serverResponse.end(JSON.stringify(token))\n})\n\n// now go to http://localhost/login\n```\n\nIf you want to support [no scope](https://developer.github.com/v3/oauth/#scopes), pass in `scope: ''`\n\n## bonus feature\n\n```javascript\n  githubOauth.addRoutes(myAppRouter)\n  // where myAppRouter is a router that will work with:\n  // myAppRouter.get('/github/login', function(req, res) {})\n  // http://github.com/flatiron/director works like this\n  \n  // or even more bonus:\n  githubOauth.addRoutes(myAppRouter, function(err, token, serverResponse, tokenResponse) {\n    \n  })\n  \n```\n## license\n\nBSD LICENSED\n","maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"time":{"modified":"2022-06-18T12:30:17.796Z","created":"2012-12-20T03:18:50.291Z","0.0.1":"2012-12-20T03:18:51.196Z","0.0.2":"2012-12-20T04:06:21.607Z","0.0.3":"2013-02-01T22:33:08.592Z","0.0.4":"2013-02-07T23:36:18.963Z","0.1.0":"2014-05-11T04:41:38.416Z","0.1.1":"2014-10-03T18:55:37.435Z","0.2.0":"2014-11-08T11:41:55.380Z","0.2.1":"2015-01-25T19:38:32.967Z","0.2.2":"2015-09-04T18:35:41.641Z"},"author":{"name":"max ogden","email":"max@maxogden.com"},"repository":{"type":"git","url":"git://github.com/maxogden/github-oauth.git"},"homepage":"https://github.com/maxogden/github-oauth","keywords":["github","oauth"],"bugs":{"url":"https://github.com/maxogden/github-oauth/issues"},"license":"ISC","readmeFilename":"readme.md","users":{"coderaiser":true,"hzapata":true,"simplyianm":true,"makenova":true,"irj":true}}