HTTPBasicInternetAccount
Auto-generated config schema for the current JBrowse release — see the
config guide for concepts. Provided by the
authentication plugin.
View source.
Example usage
An entry in the config's internetAccounts. JBrowse prompts for the username
and password the first time a file under one of domains is opened, and sends
them as an Authorization: Basic … header from then on.
{
type: 'HTTPBasicInternetAccount',
internetAccountId: 'myLabServer',
name: 'My lab server',
description: 'Sequencing data behind the lab htaccess',
domains: ['data.mylab.org'],
}
See the Config slots section below for all available configuration fields.
Related links
- State model: runtime API
- Base config: BaseInternetAccount
- 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 |
|---|---|
tokenTypestring = 'Basic' | a custom name for a token to include in the header |
validateWithHEADboolean = true | validate the token with a HEAD request before using it |
| Inherited from BaseInternetAccount | 4 slots |
namestring = '' | descriptive name of the internet account |
descriptionstring = '' | a description of the internet account |
authHeaderstring = 'Authorization' | request header for credentials |
domainsstringArray = [] | array of valid domains the url can contain to use this account |