DropboxOAuthInternetAccount
Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the developer guide for concepts. Provided by the authentication plugin. View source.
Fetches a file from a Dropbox share link through the Dropbox API, with an OAuth 2.0 token from the Dropbox login.
The configuration slots for this model are documented on its config schema page.
Each section ends with the members a composed model contributes, linked to the page that documents them.
Properties
| Member | Description |
|---|---|
typetype: types.literal('DropboxOAuthInternetAccount') | |
configurationconfiguration: ConfigurationReference(configSchema) |
Getters
| Member | Description |
|---|---|
toggleContentsElement | The FileSelector icon for Dropbox |
selectorLabelstring | |
authFlowParams{ token_access_type: string; } | Dropbox issues a refresh token only when the authorization request asks for offline access, and spells that token_access_type where other providers use access_type — so it belongs here rather than on every OAuth account. |
9 inherited getters from one model
From OAuthInternetAccount: conf, authEndpoint, tokenEndpoint, needsPKCE, clientId, scopes, state, responseType, refreshTokenKey
Methods
| Member | Description |
|---|---|
| getFetcher |
1 inherited method from one model
Actions
| Member | Description |
|---|---|
validateToken(token: string, location: UriLocation) => Promise<string> |
8 inherited actions from one model
From OAuthInternetAccount: storeRefreshToken, removeRefreshToken, postTokenGrant, , exchangeRefreshForAccessToken, validateTokenWithProbe, getTokenViaAuthFlow, getTokenFromUser