ExternalTokenInternetAccount
Auto-generated @jbrowse/mobx-state-tree API for the current JBrowse release —
see pluggable elements for concepts. Provided by the
authentication plugin.
View source.
Internet account that authenticates requests with a user-supplied external token, prompting for the token via a dialog and optionally validating it with a HEAD request. See TokenEntryInternetAccount for the shared behavior.
The configuration slots for this model are documented on its config schema page.
ExternalTokenInternetAccount declares no members of its own — it composes the models below, and everything here is theirs.
Properties
| Member | Description | Defined by |
|---|---|---|
typetype: types.literal(typeName) | TokenEntryInternetAccount | |
configurationconfiguration: ConfigurationReference(configSchema) | TokenEntryInternetAccount |
Getters
| Member | Description | Defined by |
|---|---|---|
validateWithHEADboolean | validate the token with a HEAD request before it is used | TokenEntryInternetAccount |
Actions
| Member | Description | Defined by |
|---|---|---|
| getTokenFromUser | Prompt the user for a token via the account's dialog form, resolving with the entered token or rejecting if the user cancels. | TokenEntryInternetAccount |
validateToken(token: string, location: UriLocation) => Promise<string> | Optionally validate the token with a HEAD request before use, per the validateWithHEAD config slot. | TokenEntryInternetAccount |