{"_id":"passport-google-token","_rev":"9-efd003405052cacdac46f502f7b9adc2","name":"passport-google-token","description":"Google token authentication strategy for Passport.","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"passport-google-token","version":"0.1.0","description":"Google token authentication strategy for Passport.","author":{"name":"Rob DiMarco","email":"dimarco.robert@gmail.com"},"repository":{"type":"git","url":"git://github.com/robertdimarco/passport-google-token.git"},"bugs":{"url":"http://github.com/robertdimarco/passport-google-token/issues"},"main":"./lib/passport-google-token","dependencies":{"pkginfo":"0.2.x","passport-oauth":"0.1.x"},"engines":{"node":">= 0.4.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"keywords":["passport","google","auth","authn","authentication","identity"],"homepage":"https://github.com/robertdimarco/passport-google-token","_id":"passport-google-token@0.1.0","dist":{"shasum":"4e843928ab3e2b757f6d1da2ada94b54eb8ea246","tarball":"https://registry.npmjs.org/passport-google-token/-/passport-google-token-0.1.0.tgz","integrity":"sha512-pb6IrQxC9PKcEH9ps8MI2+WHPQ0PH+fhGDg7Ob7u1OkzLbWY5fhEyXy7ceKp6iWXo4vqVOy75BdaBWqkMy/e1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAYbvPhYamkArOwLR2CXcL6TockKpWk/3+Nx7zwlXvc0AiEA3/gd6+ByHpjIoEdFiA9kS5xeg3FvNzc3B3eWRH/ZeXg="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"robdimarco","email":"dimarco.robert@gmail.com"},"maintainers":[{"name":"robdimarco","email":"dimarco.robert@gmail.com"}]},"0.1.1":{"name":"passport-google-token","version":"0.1.1","description":"Google token authentication strategy for Passport.","author":{"name":"Rob DiMarco","email":"dimarco.robert@gmail.com"},"repository":{"type":"git","url":"git://github.com/robertdimarco/passport-google-token.git"},"bugs":{"url":"http://github.com/robertdimarco/passport-google-token/issues"},"main":"./lib/passport-google-token","dependencies":{"pkginfo":"0.2.x","passport-oauth":"0.1.x"},"engines":{"node":">= 0.4.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"keywords":["passport","google","auth","authn","authentication","identity"],"gitHead":"f948a7d920467495446c6e159568a3ea132c9fc6","homepage":"https://github.com/robertdimarco/passport-google-token","_id":"passport-google-token@0.1.1","scripts":{},"_shasum":"cf9c5e98096aa9e8d080940122030cfd2d3e6470","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"robdimarco","email":"dimarco.robert@gmail.com"},"maintainers":[{"name":"robdimarco","email":"dimarco.robert@gmail.com"}],"dist":{"shasum":"cf9c5e98096aa9e8d080940122030cfd2d3e6470","tarball":"https://registry.npmjs.org/passport-google-token/-/passport-google-token-0.1.1.tgz","integrity":"sha512-hv7Abk/7mSWerV3cyOrgWMjaC1P521LkdN6Ru7PxbTXc98p0xDAO3/RPjvEQaGe20QeamgPyzTrBrqqAV362yw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJCzukqSEUfX8T0nd4ZUcFYy3g3COPH0lNLVBx5N2KfgIhALD2H/mnF1ueErZK9UuunmxYUlJU9v0RmeZmfktPV6El"}]}},"0.1.2":{"name":"passport-google-token","version":"0.1.2","description":"Google token authentication strategy for Passport.","author":{"name":"Rob DiMarco","email":"dimarco.robert@gmail.com"},"repository":{"type":"git","url":"git://github.com/robertdimarco/passport-google-token.git"},"bugs":{"url":"http://github.com/robertdimarco/passport-google-token/issues"},"main":"./lib/passport-google-token","dependencies":{"pkginfo":"0.2.x","passport-oauth":"^1.0.0"},"engines":{"node":">= 0.4.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"keywords":["passport","google","auth","authn","authentication","identity"],"gitHead":"48733a682682854fe1eb1a6db3b15cef2ac5564a","homepage":"https://github.com/robertdimarco/passport-google-token#readme","_id":"passport-google-token@0.1.2","scripts":{},"_shasum":"2596042a09c0c070f2fc397d35937256a81779fd","_from":".","_npmVersion":"3.3.4","_nodeVersion":"0.12.7","_npmUser":{"name":"robdimarco","email":"dimarco.robert@gmail.com"},"maintainers":[{"name":"robdimarco","email":"dimarco.robert@gmail.com"}],"dist":{"shasum":"2596042a09c0c070f2fc397d35937256a81779fd","tarball":"https://registry.npmjs.org/passport-google-token/-/passport-google-token-0.1.2.tgz","integrity":"sha512-Lz8PjHZQyoG9KdhGgeP/mjMwhu2Ij4REXUxO1+GOaRr1EK/RpurpSL9I5/rRKQB/Qh7UMRoPNuFESdD66IafBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG8HsapARVAsSMbfaLRGRD6+3XiedWlv3sGeTnbGidHrAiEA5ADHDP2Y847FQR67Txc9v7/BMIQC04abKpxvCMvGkJo="}]}}},"readme":"# Passport-Google-Token\n\n[Passport](http://passportjs.org/) strategy for authenticating with [Google](http://www.google.com/)  access tokens using the OAuth 2.0 API.\n\nThis module lets you authenticate using Google in your Node.js applications.\nBy plugging into Passport, Google 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    $ npm install passport-google-token\n\n## Usage\n\n#### Configure Strategy\n\nThe Google authentication strategy authenticates users using a Google\naccount and OAuth 2.0 tokens.  The strategy requires a `verify` callback, which\naccepts these credentials and calls `done` providing a user, as well as\n`options` specifying a app ID and app secret.\n\n    passport.use(new GoogleTokenStrategy({\n        clientID: GOOGLE_CLIENT_ID,\n        clientSecret: GOOGLE_CLIENT_SECRET\n      },\n      function(accessToken, refreshToken, profile, done) {\n        User.findOrCreate({ googleId: profile.id }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate('google-token')` to authenticate requests.\n\n    router.get('/auth/google/token', passport.authenticate('google-token'),\n     function(req, res) {\n      res.send(req.user);\n    });\n\nGET request need to have `access_token` and optionally the `refresh_token` in either the query string or set as a header.  If a POST is being preformed they can also be included in the body of the request.\n\n## Credits\n\n  - [Nicholas Penree](http://github.com/drudge)\n  - [Jared Hanson](http://github.com/jaredhanson)\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2014 Rob DiMarco\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"robdimarco","email":"dimarco.robert@gmail.com"}],"time":{"modified":"2022-06-23T12:42:33.581Z","created":"2014-04-07T19:08:07.869Z","0.1.0":"2014-04-07T19:08:07.869Z","0.1.1":"2014-11-30T19:22:35.806Z","0.1.2":"2015-10-11T01:25:20.481Z"},"homepage":"https://github.com/robertdimarco/passport-google-token#readme","keywords":["passport","google","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/robertdimarco/passport-google-token.git"},"author":{"name":"Rob DiMarco","email":"dimarco.robert@gmail.com"},"bugs":{"url":"http://github.com/robertdimarco/passport-google-token/issues"},"readmeFilename":"README.md","users":{"aitorllj93":true,"iseif":true}}