ExternalTokenInternetAccount
Auto-generated from the config schema in the source — see the config guide for concepts. Provided by the authentication plugin. View source.
Example usage
For a token the user pastes in, or that an embedding portal hands over. JBrowse does not obtain the token itself — it prompts for one, then sends it on every request to a matching domain.
{
type: 'ExternalTokenInternetAccount',
internetAccountId: 'portalToken',
name: 'Data portal token',
domains: ['api.myportal.org'],
}Sends a token that the user pastes in, or that an embedding portal supplies, with every request to a matching domain.
Related links
- State model: runtime API
- Base config: BaseInternetAccount
- Config guide: Authentication
Config slots
These 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 |
|---|---|
validateWithHEADboolean = true | validate the token with a HEAD request before using it |
| Inherited from BaseInternetAccount | 5 slots |
namestring = '' | descriptive name of the internet account |
descriptionstring = '' | a description of the internet account |
authHeaderstring = 'Authorization' | request header for credentials |
tokenTypestring = '' | a custom name for a token to include in the header |
domainsstringArray = [] | array of valid domains the url can contain to use this account |