NOTICE: Dropbox supports both OAuth 1.0 and OAuth 2.0. This strategy implements support for OAuth 1.0. If you are building a new application, OAuth 2.0 is preferred. In that case, passport-dropbox-oauth2 can be used as a strategy.
Passport strategy for authenticating with Dropbox using the OAuth 1.0 API.
This module lets you authenticate using Dropbox in your Node.js applications. By plugging into Passport, Dropbox authentication can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express.
$ npm install passport-dropbox
Before using passport-dropbox
, you must register an application with Dropbox.
If you have not already done so, a new application can be created at
Dropbox Developers. Your application will
be issued a key and secret, which need to be provided to the strategy.
The Dropbox authentication strategy authenticates users using a Dropbox account
and OAuth tokens. The consumer key and consumer secret obtained when creating
an application are supplied as options when creating the strategy. The strategy
also requires a verify
callback, which receives the access token and
corresponding secret as arguments, as well as profile
which co