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 |
|---|---|
type"DropboxOAuthInternetAccount" |
Always "DropboxOAuthInternetAccount", the name a snapshot selects this model by. |
configurationDropboxOAuthInternetAccountConfig |
The config node this model reads its settings from, through getConf. Its slots are documented on its config schema page. |
Getters
| Member | Description |
|---|---|
dropboxConfDropboxOAuthInternetAccountConfig |
|
browseLabel"Browse Dropbox" | undefined |
Offered on the web only, once chooser is on: the Chooser runs in a popup, which the desktop navigation guard would send to the system browser |
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. |
8 inherited getters from one model
From OAuthInternetAccount: conf, authEndpoint, tokenEndpoint, needsPKCE, clientId, scopes, responseType, refreshTokenKey
Methods
| Member | Description |
|---|---|
| getFetcher |
1 inherited method from one model
Actions
| Member | Description |
|---|---|
chooseLocation() => Promise<UriLocation | undefined> |
The Chooser needs only the app key, which is the OAuth clientId. Its preview link is a shared link, which the fetcher below reads with the user's token |
validateToken(token: string, location: UriLocation) => Promise<string> |
8 inherited actions from one model
From OAuthInternetAccount: storeRefreshToken, removeRefreshToken, postTokenGrant, , exchangeRefreshForAccessToken, validateTokenWithProbe, getTokenViaAuthFlow, getTokenFromUser