{"_id":"passport-fitbit","_rev":"13-c39712ca8ae4f2f19796d3a7e2e6500e","name":"passport-fitbit","description":"Fitbit authentication strategy for Passport.","dist-tags":{"latest":"1.1.0"},"versions":{"0.1.0":{"name":"passport-fitbit","version":"0.1.0","description":"Fitbit 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-fitbit.git"},"main":"./lib/passport-fitbit","dependencies":{"passport-oauth":">= 0.1.0"},"engines":{"node":">= 0.4.0"},"keywords":["passport","fitbit","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-fitbit@0.1.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"1135822fe7c97f765d01899986a4b5fa64f7039f","tarball":"https://registry.npmjs.org/passport-fitbit/-/passport-fitbit-0.1.0.tgz","integrity":"sha512-u8BmV0dPZ8kmBEeSXSHhbPDdwpBLC/yaViJeauj/nbYIr95bsWoxPNSRJfyaLSIm1mrmwvSxevPpqWb6b85aUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE5QlhClJ+Evpq3QjwbYBZ8W89td8UEoCw/tYRUp2beYAiEAwYZ3nENxiuK5pqQL8yhvI+U4MI/6PWj+YSY1UK3SKPk="}]},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.1":{"name":"passport-fitbit","version":"0.1.1","description":"Fitbit 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-fitbit.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-fitbit/issues"},"main":"./lib/passport-fitbit","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","fitbit","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-fitbit@0.1.1","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"331c00e7c9e07e8bf14cc3179046cb872a1a5a47","tarball":"https://registry.npmjs.org/passport-fitbit/-/passport-fitbit-0.1.1.tgz","integrity":"sha512-eW0TCvS7+NcDnSwS8LHWIDPij/1v4+TyzO+yzGFWeNnxf6Ujs7c/Omye1YJ6JFFAjsIttT/yBItEPCSCd1Et2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7Rrw14uVvOH7Cq0KcdBjHF6g11ktb1xD6xD2emUebFQIhANBaKuM/+GPy5X6LbqZuW5m47fnC1ZoqlebQbSd0Z66+"}]},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.2":{"name":"passport-fitbit","version":"0.1.2","description":"Fitbit authentication strategy for Passport.","keywords":["passport","fitbit","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-fitbit.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-fitbit/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-fitbit","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"},"_id":"passport-fitbit@0.1.2","dist":{"shasum":"e4cbafc8130f2c5c4a10a9e5543878584f17ad30","tarball":"https://registry.npmjs.org/passport-fitbit/-/passport-fitbit-0.1.2.tgz","integrity":"sha512-jQkLpLJXRFNMArO/5goP8QrZO1xDneubllpeNq8JCq+jHVD0/NIrhD2KbaI25fTjz2whotwvfOmFTJpXktQlwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXe+CH7Gvo8W9MecziRjzt/TAxamBff8kPn47G1ZhTSQIgIGTCqlzInT52EewVgLkLKJMIiQ5+/4SVfflbpp+VoD8="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"1.0.0":{"name":"passport-fitbit","version":"1.0.0","description":"Fitbit authentication strategy for Passport.","keywords":["passport","fitbit","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-fitbit.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-fitbit/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","dependencies":{"passport-oauth1":"1.x.x"},"devDependencies":{"vows":"0.8.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"gitHead":"bd5dbc5fcace17ae36b82b55bbeeac6804f0f433","homepage":"https://github.com/jaredhanson/passport-fitbit","_id":"passport-fitbit@1.0.0","_shasum":"e12e57653e598613800511c35a686cc8dcaae249","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}],"dist":{"shasum":"e12e57653e598613800511c35a686cc8dcaae249","tarball":"https://registry.npmjs.org/passport-fitbit/-/passport-fitbit-1.0.0.tgz","integrity":"sha512-PIGIlWPKv/YpMd/otjGqRkf234yR8hgCfIXmbYvLRrjJ8M+cNrn/XTYq318AdEBSGJMNZXa9uTFiAndUk4GY7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyapCta3eDntPmpWM+krC19ORtd+6mrYN1fWMHT4//cwIhAMWN7DjAT5a5uElGiwAD6IXtn6iIJbqGSp5poQ0LtuuI"}]}},"1.1.0":{"name":"passport-fitbit","version":"1.1.0","description":"Fitbit authentication strategy for Passport.","keywords":["passport","fitbit","auth","authn","authentication","identity"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-fitbit.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-fitbit/issues"},"license":"MIT","licenses":[{"type":"MIT","url":"http://opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"passport-oauth1":"1.x.x"},"devDependencies":{"make-node":"0.3.x","mocha":"1.x.x","chai":"2.x.x","chai-passport-strategy":"1.x.x"},"engines":{"node":">= 0.4.0"},"scripts":{"test":"mocha --require test/bootstrap/node test/*.test.js"},"gitHead":"09020b76852280481aa9fad380c89b1b38f349f9","homepage":"https://github.com/jaredhanson/passport-fitbit#readme","_id":"passport-fitbit@1.1.0","_shasum":"36e50c0682471fbfdfc623a8692c55ea19c6e91f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}],"dist":{"shasum":"36e50c0682471fbfdfc623a8692c55ea19c6e91f","tarball":"https://registry.npmjs.org/passport-fitbit/-/passport-fitbit-1.1.0.tgz","integrity":"sha512-ia8tQW+xZEkdn5/mhcLgwMngZS9mzm8T3uDYG7GE9Bja/TYgLIDLIPYOp0w1F0z7uTHgkB7Gf4uzSuieatyPSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFq/SFtb5TTWX0xqD28RtQsmfMOS5DepES/0tfbg3lWjAiAQh6XTVeU0HjNxrd4SsmvEjH9yVK/uaRATIaYXP04Hsw=="}]},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/passport-fitbit-1.1.0.tgz_1454612903133_0.047482441645115614"}}},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}],"time":{"modified":"2022-06-23T12:37:09.509Z","created":"2011-10-28T15:01:32.242Z","0.1.0":"2011-10-28T15:01:33.617Z","0.1.1":"2012-02-23T16:29:53.620Z","0.1.2":"2013-01-24T16:21:11.740Z","1.0.0":"2015-08-24T19:43:48.221Z","1.1.0":"2016-02-04T19:08:25.693Z"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-fitbit.git"},"readme":"**DEPRECATED:** Fitbit's support for OAuth 1.0a is [deprecated](https://community.fitbit.com/t5/Web-API/OAuth-2-0-is-official-OAuth-1-0a-is-deprecated/m-p/983800)\nand will no longer function as of April 12, 2016.  You are encouraged to migrate\nto OAuth 2.0 and [passport-fitbit-oauth2](https://github.com/thegameofcode/passport-fitbit-oauth2)\nas soon as possible.\n\n\n# passport-fitbit\n\n[![Build](https://img.shields.io/travis/jaredhanson/passport-fitbit.svg)](https://travis-ci.org/jaredhanson/passport-fitbit)\n[![Coverage](https://img.shields.io/coveralls/jaredhanson/passport-fitbit.svg)](https://coveralls.io/r/jaredhanson/passport-fitbit)\n[![Quality](https://img.shields.io/codeclimate/github/jaredhanson/passport-fitbit.svg?label=quality)](https://codeclimate.com/github/jaredhanson/passport-fitbit)\n[![Dependencies](https://img.shields.io/david/jaredhanson/passport-fitbit.svg)](https://david-dm.org/jaredhanson/passport-fitbit)\n\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith [Fitbit](http://www.fitbit.com/) using the OAuth 1.0a API.\n\nThis module lets you authenticate using Fitbit in your Node.js applications.\nBy plugging into Passport, Fitbit 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-fitbit\n\n## Usage\n\n#### Create an Application\n\nBefore using `passport-fitbit`, you must register an application with Fitbit.\nIf you have not already done so, a new application can be created at\n[Fitbit Developers](https://dev.fitbit.com/).  Your application will be issued a\nconsumer key and consumer secret, which need to be provided to the strategy.\nYou will also need to configure a callback URL which matches the route in your\napplication.\n\n#### Configure Strategy\n\nThe Fitbit authentication strategy authenticates users using a Fitbit account\nand OAuth tokens.  The consumer key and consumer secret obtained when creating\nan application are supplied as options when creating the strategy.  The strategy\nalso requires a `verify` callback, which receives the access token and\ncorresponding secret as arguments, as well as `profile` which contains the\nauthenticated user's Fitbit profile.   The `verify` callback must call `cb`\nproviding a user to complete authentication.\n\n    passport.use(new FitbitStrategy({\n        consumerKey: FITBIT_CONSUMER_KEY,\n        consumerSecret: FITBIT_CONSUMER_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/fitbit/callback\"\n      },\n      function(token, tokenSecret, profile, cb) {\n        User.findOrCreate({ fitbitId: profile.id }, function (err, user) {\n          return cb(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'fitbit'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/fitbit',\n      passport.authenticate('fitbit'));\n\n    app.get('/auth/fitbit/callback', \n      passport.authenticate('fitbit', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n\n## Examples\n\nDevelopers using the popular [Express](http://expressjs.com/) web framework can\nrefer to an [example](https://github.com/passport/express-4.x-twitter-example)\nas a starting point for their own web applications.  The example shows how to\nauthenticate users using Twitter.  However, because both Twitter and Fitbit\nuse OAuth 1.0, the code is similar.  Simply replace references to Twitter with\ncorresponding references to Fitbit.\n\n## Contributing\n\n#### Tests\n\nThe test suite is located in the `test/` directory.  All new features are\nexpected to have corresponding test cases.  Ensure that the complete test suite\npasses by executing:\n\n```bash\n$ make test\n```\n\n#### Coverage\n\nAll new feature development is expected to have test coverage.  Patches that\nincrese test coverage are happily accepted.  Coverage reports can be viewed by\nexecuting:\n\n```bash\n$ make test-cov\n$ make view-cov\n```\n\n## Support\n\n#### Funding\n\nThis software is provided to you as open source, free of charge.  The time and\neffort to develop and maintain this project is dedicated by [@jaredhanson](https://github.com/jaredhanson).\nIf you (or your employer) benefit from this project, please consider a financial\ncontribution.  Your contribution helps continue the efforts that produce this\nand other open source software.\n\nFunds are accepted via [PayPal](https://paypal.me/jaredhanson), [Venmo](https://venmo.com/jaredhanson),\nand [other](http://jaredhanson.net/pay) methods.  Any amount is appreciated.\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2011-2016 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>\n","homepage":"https://github.com/jaredhanson/passport-fitbit#readme","keywords":["passport","fitbit","auth","authn","authentication","identity"],"bugs":{"url":"http://github.com/jaredhanson/passport-fitbit/issues"},"readmeFilename":"README.md","license":"MIT"}