Prerequisites

  • The Dropbox managed system should be running.

  • You must generate the access token for the Dropbox SaaS application. The Dropbox SaaS administrator acquires it from the Dropbox business server using the OAUTH2 mechanism to allow Identity Now to interact with the Dropbox server. Access tokens are valid until the user uninstalls the application or explicitly revokes the grant through the Dropbox SaaS page.

Note
For more information, refer to the OAuth Guide in the Dropbox documentation.

Following are the steps to generate a refresh token:

  1. Construct authorization URL for the required app using the following example:

    https://www.dropbox.com/oauth2/authorize?client_id=<APP_KEY>&response_type=code&token_access_type=offline

    where <APP_KEY> is the Dropbox App Key. For the URL drop application, use admin credentials to log in. After logging in, it provides the authorization code as a result.

  2. Use the following token API to get the refresh token:

    curl https://api.dropbox.com/oauth2/token \

    -d code=<AUTHORIZATION_CODE> \

    -d grant_type=authorization_code \

    -u <APP_KEY>:<APP_SECRET>

    Where:

    • <AUTHORIZATION_CODE> – The construct authorization code received earlier

    • <APP_KEY> – The Dropbox App Key

    • <APP_SECRET> – The Dropbox App Secret