{"_id":"passport-justintv","_rev":"9-ab4a7b1c9e2efb43b79ecb9a40c36eda","name":"passport-justintv","description":"Justin.tv authentication strategy for Passport.","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"passport-justintv","version":"0.1.0","description":"Justin.tv authentication strategy for Passport.","author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-justintv.git"},"main":"./lib/passport-justintv","dependencies":{"passport-oauth":">= 0.1.0"},"engines":{"node":">= 0.4.0"},"keywords":["passport","justintv","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-justintv@0.1.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"c0f335842686f7b5de341db1587744e7a5ae5b1d","tarball":"https://registry.npmjs.org/passport-justintv/-/passport-justintv-0.1.0.tgz","integrity":"sha512-Q+JqL7oON5uvc626X5i7VLojqZ9T5xm21h84njz6wTjmbC8R8cuQ0hNItbjbnyMIwzgv4kUNUtjRC4AFkFZL4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCefxhPR3y9IydEtnK1HHZCUld0ESORB9QdjwtCpb/lEAIhANnhVUbGjeSXzgZxwpnUlmJzMd8n6Xki/AxmtDLqafQh"}]},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.1":{"name":"passport-justintv","version":"0.1.1","description":"Justin.tv authentication strategy for Passport.","author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-justintv.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-justintv/issues"},"main":"./lib/passport-justintv","dependencies":{"pkginfo":"0.2.x","passport-oauth":"0.1.x"},"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","justintv","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-justintv@0.1.1","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"31be10976bb97029ea05c6d5cb68ea4cd14dff41","tarball":"https://registry.npmjs.org/passport-justintv/-/passport-justintv-0.1.1.tgz","integrity":"sha512-wXSm4LpY+WGiytnITorIDXBsGPStSX9Q/qvW2DbdSKbmRbPdVraHBUg/3x4PMAfp7noq7hw3JkvgONJU81yZ+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2RZ7tqM2s6B1WDhK0TLETF8EcaCjxBw8QqFdEoe4UdwIgOHB37/MP4W8mUX3HGfBa5+q8CaoOYsCosO4rhflo8iQ="}]},"readme":"","maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.2":{"name":"passport-justintv","version":"0.1.2","description":"Justin.tv authentication strategy for Passport.","keywords":["passport","justintv","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-justintv.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-justintv/issues"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib/passport-justintv","dependencies":{"pkginfo":"0.2.x","passport-oauth":"0.1.x"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"readme":"# Passport-Justin.tv\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith [Justin.tv](http://www.justin.tv/) using the OAuth 1.0a API.\n\nThis module lets you authenticate using Justin.tv in your Node.js applications.\nBy plugging into Passport, Justin.tv 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## Install\n\n    $ npm install passport-justintv\n\n## Usage\n\n#### Configure Strategy\n\nThe Justin.tv authentication strategy authenticates users using a Justin.tv\naccount and OAuth tokens.  The strategy requires a `verify` callback, which\naccepts these credentials and calls `done` providing a user, as well as\n`options` specifying a consumer key, consumer secret, and callback URL.\n\n    passport.use(new JustintvStrategy({\n        consumerKey: JUSTINTV_CONSUMER_KEY,\n        consumerSecret: JUSTINTV_CONSUMER_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/justintv/callback\"\n      },\n      function(token, tokenSecret, profile, done) {\n        User.findOrCreate({ justintvId: profile.id }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'justintv'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/justintv',\n      passport.authenticate('justintv'));\n    \n    app.get('/auth/justintv/callback', \n      passport.authenticate('justintv', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n\n## Examples\n\nFor a complete, working example, refer to the [login example](https://github.com/jaredhanson/passport-justintv/tree/master/examples/login).\n\n## Tests\n\n    $ npm install --dev\n    $ make test\n\n[![Build Status](https://secure.travis-ci.org/jaredhanson/passport-justintv.png)](http://travis-ci.org/jaredhanson/passport-justintv)\n\n## Credits\n\n  - [Jared Hanson](http://github.com/jaredhanson)\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","_id":"passport-justintv@0.1.2","dist":{"shasum":"026f968deaee709356485d8dff9044d2fc36a8ad","tarball":"https://registry.npmjs.org/passport-justintv/-/passport-justintv-0.1.2.tgz","integrity":"sha512-CgVD8cljskmwVD91w7Vpu5SG525kKoDAdt6CcivGZB7dqwHVYz5jPQ3sRq84CACeJA4VGf0t38xqlISDAZcO7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0YfxDH1+W9CAdblLHTk1Vf+tiC/F3oVJQ3SzQj/VcsAiEA5doGLmyjxN8rv5F9wYr5Uoue3iJI0c1FlPZn7+OobEg="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]}},"readme":null,"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}],"time":{"modified":"2022-06-23T12:52:15.802Z","created":"2011-12-03T17:30:15.739Z","0.1.0":"2011-12-03T17:30:16.416Z","0.1.1":"2012-02-21T16:17:41.081Z","0.1.2":"2013-01-25T05:57:15.773Z"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-justintv.git"}}