Skip to main content

Connection - Dropbox​

The Dropbox Connection stores the sign-in and security settings that these Tasks and Triggers use to connect to Dropbox:

A Dropbox Connection needs a Dropbox app that you create.

Common settings​

Dropbox Connection, Common settings tab

The Common settings and Proxy tabs are the same for every Connection type that has them; see Common settings and Proxy.

Test asks the Server to connect with the stored sign-in and list the root folder of the Dropbox.

Main settings​

Dropbox Connection, Main settings tab

These fields are on Connection settings -> Main settings.

App Key

The app key of your Dropbox app. Required.

App Secret

The app secret of your Dropbox app.

Redirect Url

The address that Dropbox sends the sign-in result to. Default: "http://localhost:9999". Add the same address as a redirect URI of the Dropbox app.

Auto-accept server certificates

Selected by default.

warning

Dropbox Connections accept any server certificate, whether or not Auto-accept server certificates is selected. The Server does not check the server certificate when it connects to Dropbox, so it cannot tell the real server from another server that answers at the same address. Connect to Dropbox only over a network path that you trust.

Each time the Server refreshes the Dropbox sign-in, for example when a Task runs, it also sets the whole Server process to accept any server certificate and to allow SSL 3.0. After that, other HTTPS connections from the Server, not only those to Dropbox, accept any server certificate.

Create an account

Opens the Dropbox App Console.

Authenticate

Starts the Dropbox sign-in. See Authentication and token expiry.

How to create a Dropbox Connection​

To create a Dropbox Connection, complete the following steps:

  1. Open the Dropbox App Console at https://www.dropbox.com/developers/apps, or click Create an account.

  2. Create an app.

  3. On the Permissions tab of the app, enable the permissions to read and write file content and file metadata.

  4. Submit the permission change.

  5. On the Settings tab of the app, add the value of Redirect Url, by default "http://localhost:9999", as a redirect URI.

    The redirect URIs of a Dropbox app

  6. Copy the app key into App Key.

  7. Copy the app secret into App Secret.

  8. Click Authenticate.

  9. Sign in to Dropbox.

    The Dropbox sign-in page

  10. Allow the app to access the Dropbox account.

  11. Click OK to save the Connection.

  12. Click Test on the Common settings tab.

The test reports that it was successful.

Authentication and token expiry​

  • Authenticate runs on the computer where the Client runs. The browser opens there, and the Client listens for the sign-in result on the port of Redirect Url, so that port must be free on that computer
  • After the sign-in, the Connection stores the refresh token encrypted. At run time, the Server uses it to get a short-lived access token
  • When Dropbox no longer accepts the refresh token, the Server marks the Connection as expired, and the Client shows the message "Connection session expired". Open the Connection and click Authenticate again

Proxy​

Dropbox Connection, Proxy tab

warning

Cloud Tasks and the Cloud file Trigger do not use the Proxy tab of a Dropbox Connection. Only Authenticate in the Client uses it. On a network where the Server reaches the Internet only through a proxy, Jobs that use a Dropbox Connection fail.

Troubleshooting​

400 Invalid Redirect URI​

The redirect URI is not registered on the Dropbox app. Add the exact value of Redirect Url, by default "http://localhost:9999", as a redirect URI of the app.

Token is empty, please check your connection details. Wrong redirect url?​

The sign-in did not return a token. Check App Key, App Secret and Redirect Url, and check that no other program uses the port of Redirect Url on the Client computer.