Connector for Dropbox configuration properties
Implementing the Tridion Connector for Dropbox requires a JSON configuration file, which defines your specific integration of Tridion with Connector for Dropbox.
This topic describes the configuration properties that are needed specifically for the Connector for Dropbox. For complete information on standard configuration format, see the related topic for configuring a Connector.
In the Connectors's JSON configuration file, use the following properties:
accessToken- Access token to be used to authenticate over OAuth.
clientId- API username to be used to authenticate over OAuth.
clientSecret- API password to be used to authenticate over OAuth.
hostUrl- URL to the REST API endpoint.
hostUrl- URL to the REST API endpoint.
bearerTokenUrl- URL to the OAuth2 authorization endpoint to acquire Bearer token.
- disconnectUrl
- URL to the endpoint of the revoke token that is used to authenticate the call.
The following sample code illustrates the configuration file of a Connector for Dropbox:
{
"configuration": {
"DropboxConnector": {
"configuration": {
"AccessToken": "7fCDWD8vBLAAAAAAABBCJooz-pJSuwUSzPmVf9u-qkxfHjgcdoHngUFUB-fnC2_v",
"ClientId": "7x8n7it6417xjty",
"ClientSecret": "p8jyt6d58mmm371",
"HostUrl": "https://api.dropboxapi.com/2/files",
"BearerTokenUrl": "https://api.dropboxapi.com/oauth2/token",
"DisconnectUrl": "https://api.dropboxapi.com/2/auth/token/revoke"
}
}
},
"sitesCm": {
"isEnabled": true,
"DropboxConnector": {
"namespaces": {
"dropbox": {
"displayName": "Dropbox",
"stubFolders": [ "tcm:2-71-2" ],
"privilegedUserName": "Administrator"
}
}
}
}
}