HTTPBasicInternetAccount
Auto-generated from the config schema in the source — see the config guide for concepts. Provided by the authentication plugin. View source.
Prompts for a username and password, and sends them in an HTTP Basic
Authorization header on requests to a matching domain.
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'],
}Related links
- State model: runtime API
- Base config: BaseInternetAccount
- Config guide: Authentication
Config slots
Account 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 |