DropboxOAuthInternetAccount
Auto-generated from the config schema in the source — see the config guide for concepts. Provided by the authentication plugin. View source.
Signs requests for Dropbox files with an OAuth 2.0 token, with the Dropbox endpoints and domains filled in.
Example usage
The Dropbox endpoints are pre-filled, so an entry needs only your own OAuth
app's clientId. Leave domains off and the account is still selectable by
hand in the Add Track form.
{
type: 'DropboxOAuthInternetAccount',
internetAccountId: 'dropboxOAuth',
name: 'Dropbox',
clientId: 'your-dropbox-app-key',
}Related links
- State model: runtime API
- Base config: OAuthInternetAccount
- Config guide: Authentication
Config slots
Account slots are top-level fields of the account's entry in internetAccounts. Slot types (fileLocation, frozen, ...) are explained in the config slot types reference. Slots a base configuration contributes are listed here too, so this table is the whole surface.
| Slot | Description |
|---|---|
authEndpointstring = 'https://www.dropbox.com/oauth2/authorize' | the authorization code endpoint of the internet account |
tokenEndpointstring = 'https://api.dropbox.com/oauth2/token' | the token endpoint of the internet account |
needsPKCEboolean = true | boolean to indicate if the endpoint needs a PKCE code |
domainsstringArray = [] | array of valid domains the url can contain to use this account |
| Inherited from OAuthInternetAccount | 5 slots |
tokenTypestring = 'Bearer' | a custom name for a token to include in the header |
clientIdstring = '' | id for the OAuth application |
scopesstring = '' | optional scopes for the authorization call |
statestring = '' | optional state for the authorization call |
responseTypestring = 'code' | the type of response from the authorization endpoint. can be 'token' or 'code' |
| Inherited from BaseInternetAccount | 3 slots |
namestring = '' | descriptive name of the internet account |
descriptionstring = '' | a description of the internet account |
authHeaderstring = 'Authorization' | request header for credentials |