{"_id":"passport-dropbox","_rev":"17-18a6907bcd6c06aa8937eec80c45ed70","name":"passport-dropbox","description":"Dropbox authentication strategy for Passport.","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"passport-dropbox","version":"0.1.0","description":"Dropbox 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-dropbox.git"},"main":"./lib/passport-dropbox","dependencies":{"passport-oauth":">= 0.1.1"},"engines":{"node":">= 0.4.0"},"keywords":["passport","dropbox","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-dropbox@0.1.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"b590413e6a05dcb924fcd355c461736df0f8c60b","tarball":"https://registry.npmjs.org/passport-dropbox/-/passport-dropbox-0.1.0.tgz","integrity":"sha512-WKFHRbIjwcLK6Fe7dcezJGhoslib6oCFJF85OdGftJWwXcvWEp6SazzFFqAvBV0+1jTYU1ba4ro4BnHEYunsOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCApAwI/8EfYm1hbZO4BVF+lbwRCFYiJ0/itvCUu9bdugIhAN5bV8gTwMKFlEknH3cdoF91oW2mHEcBqOW6a73QO/Ao"}]},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.1":{"name":"passport-dropbox","version":"0.1.1","description":"Dropbox 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-dropbox.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-dropbox/issues"},"main":"./lib/passport-dropbox","dependencies":{"pkginfo":"0.2.x","passport-oauth":"~0.1.1"},"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","dropbox","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-dropbox@0.1.1","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"532ed12b700f245b9ff14f62f8c01057b684f350","tarball":"https://registry.npmjs.org/passport-dropbox/-/passport-dropbox-0.1.1.tgz","integrity":"sha512-kWOGn9QAjsQQ1NwZn5pVxj3swWM1hFjTT3UP3Tl22d8gmXTcsKW6Hdym1/RckbCvw/CoUZtOqDowL0osBowCAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGIBfHvlO2BkPs1TzCcqn5ZDVWbWjbaPXkugeZHvEAudAiB8cZYjUCKAiXPkvq/5X9h3gK9h1vAeJ9z8l/s6brgx0Q=="}]},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.2":{"name":"passport-dropbox","version":"0.1.2","description":"Dropbox authentication strategy for Passport.","keywords":["passport","dropbox","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-dropbox.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-dropbox/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-dropbox","dependencies":{"pkginfo":"0.2.x","passport-oauth":"~0.1.1"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"_id":"passport-dropbox@0.1.2","dist":{"shasum":"19149539d88895ce4627e166ddc8009239f58010","tarball":"https://registry.npmjs.org/passport-dropbox/-/passport-dropbox-0.1.2.tgz","integrity":"sha512-NwFitrMyp6dFkPFgguyM7STNJOTjJ5hs5e2x72jfATx+kbDRCPXDnHfIHFD3pN5uYb2MoCen5oK869buhMLGbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAPlGXV0WtfOrAo0g1RfJTqNns+sEpUtH0jWMERdoiHyAiBU5SKxw0XngRB9s9JnzscRf2gqAnySKuwUeaEc8LO1ig=="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"1.0.0":{"name":"passport-dropbox","version":"1.0.0","description":"Dropbox authentication strategy for Passport.","keywords":["passport","dropbox","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-dropbox.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-dropbox/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":"6fd381ededd7e7c7e7e0fc913188676847bd03d7","homepage":"https://github.com/jaredhanson/passport-dropbox","_id":"passport-dropbox@1.0.0","_shasum":"99a8d5536a87a10423cedcb912f41632653a11cc","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}],"dist":{"shasum":"99a8d5536a87a10423cedcb912f41632653a11cc","tarball":"https://registry.npmjs.org/passport-dropbox/-/passport-dropbox-1.0.0.tgz","integrity":"sha512-xV0l2j6xnFIawBTSczHhKDOgf0zVrID57z4tnKxA//PsDXFkHbYmMUKQdQodHteD+jJNWz+W014GI/aDb1iJdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCScKtlEm5OBXQtQDIAkrPkCsPTVz5ATFZmVUiupVHQ/wIgUsKm3YudJfxE4U+b3TF8sSdsUx8Gc3iClB8+9PZpjYM="}]}},"2.0.0":{"name":"passport-dropbox","version":"2.0.0","description":"Dropbox authentication strategy for Passport.","keywords":["passport","dropbox","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-dropbox.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-dropbox/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":"6809ee6ad1a4da3b24057eaabf2318fd91d6a775","homepage":"https://github.com/jaredhanson/passport-dropbox#readme","_id":"passport-dropbox@2.0.0","_shasum":"7efe6ced152a4f4db4e4db385743c2764eba963b","_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":"7efe6ced152a4f4db4e4db385743c2764eba963b","tarball":"https://registry.npmjs.org/passport-dropbox/-/passport-dropbox-2.0.0.tgz","integrity":"sha512-215ii2ICGku+SwtbsmDUxFJTqfeIbnIWjRrOQEpWTfVAtUToaTjqfCjgBcKFILGF1dwJDp8SAxSBwl6xyRNYSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICQ+60FbfKdUk5oqxeQ0WfnAdQgMRY/Q00AGziSxq0OOAiEAtlbOQdFLo6dwKkV10A8YeUHO7BCA7+ag65MRm6wORjI="}]},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/passport-dropbox-2.0.0.tgz_1454703363075_0.10134799871593714"}}},"readme":"**NOTICE:** Dropbox supports both OAuth 1.0 and OAuth 2.0. This strategy\nimplements support for OAuth 1.0.  If you are building a new application, OAuth\n2.0 is preferred.  In that case, [passport-dropbox-oauth2](https://github.com/florianheinemann/passport-dropbox-oauth2)\ncan be used as a strategy.\n\n\n# passport-dropbox\n\n[![Build](https://img.shields.io/travis/jaredhanson/passport-dropbox.svg)](https://travis-ci.org/jaredhanson/passport-dropbox)\n[![Coverage](https://img.shields.io/coveralls/jaredhanson/passport-dropbox.svg)](https://coveralls.io/r/jaredhanson/passport-dropbox)\n[![Quality](https://img.shields.io/codeclimate/github/jaredhanson/passport-dropbox.svg?label=quality)](https://codeclimate.com/github/jaredhanson/passport-dropbox)\n[![Dependencies](https://img.shields.io/david/jaredhanson/passport-dropbox.svg)](https://david-dm.org/jaredhanson/passport-dropbox)\n\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith [Dropbox](http://www.dropbox.com/) using the OAuth 1.0 API.\n\nThis module lets you authenticate using Dropbox in your Node.js applications.\nBy plugging into Passport, Dropbox 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-dropbox\n\n## Usage\n\n#### Create an Application\n\nBefore using `passport-dropbox`, you must register an application with Dropbox.\nIf you have not already done so, a new application can be created at\n[Dropbox Developers](https://www.dropbox.com/developers).  Your application will\nbe issued a key and secret, which need to be provided to the strategy.\n\n#### Configure Strategy\n\nThe Dropbox authentication strategy authenticates users using a Dropbox 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 Dropbox profile.   The `verify` callback must call `cb`\nproviding a user to complete authentication.\n\n    passport.use(new DropboxStrategy({\n        consumerKey: DROPBOX_APP_KEY,\n        consumerSecret: DROPBOX_APP_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/dropbox/callback\"\n      },\n      function(token, tokenSecret, profile, cb) {\n        User.findOrCreate({ dropboxId: profile.id }, function (err, user) {\n          return cb(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'dropbox'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/dropbox',\n      passport.authenticate('dropbox'));\n    \n    app.get('/auth/dropbox/callback', \n      passport.authenticate('dropbox', { 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 Dropbox use\nOAuth 1.0, the code is similar.  Simply replace references to Twitter with\ncorresponding references to Dropbox.\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","maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}],"time":{"modified":"2022-06-23T12:30:51.372Z","created":"2011-11-29T06:55:06.604Z","0.1.0":"2011-11-29T06:55:07.358Z","0.1.1":"2012-02-11T03:29:02.481Z","0.1.2":"2013-01-25T03:54:35.177Z","1.0.0":"2015-07-28T20:14:03.925Z","2.0.0":"2016-02-05T20:16:07.031Z"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-dropbox.git"},"users":{"goliatone":true,"chirag8642":true,"rocket0191":true,"iamninad":true},"homepage":"https://github.com/jaredhanson/passport-dropbox#readme","keywords":["passport","dropbox","auth","authn","authentication","identity"],"bugs":{"url":"http://github.com/jaredhanson/passport-dropbox/issues"},"readmeFilename":"README.md","license":"MIT"}