Skip to main content

HttpAuthConfig

HTTP authentication configuration for accessing protected websites.

Notes

Configures HTTP authentication for accessing protected websites. Supports BASIC, DIGEST, NTLM, Kerberos, SPNEGO, and HTML form-based authentication methods, with optional preemptive authentication and custom form parameters.

Usage

credentials:
password: string
passwordKey:
size: 0
source: KEY
value: string
username: string
domain: string
formCharset: string
formParams: {}
formPasswordField: string
formSelector: string
formUsernameField: string
host:
name: string
port: 0
kerberosConfig:
keytabPath: string
krb5ConfigPath: string
loginModuleName: string
principal: string
servicePrincipalName: string
useTicketCache: false
method: FORM
preemptive: false
realm: string
url: string
workstation: string

Properties

PropertyTypeRequiredDefault
credentialsCredentialsNoCredentials
domainstringNo-
formCharsetstringNoUTF_8
formParamsRecord<string, string>No-
formPasswordFieldstringNo-
formSelectorstringNo-
formUsernameFieldstringNo-
hostHostNo-
kerberosConfigKerberosConfigNo-
methodenumNo-
preemptivebooleanNofalse
realmstringNo-
urlstringNo-
workstationstringNo-

Property Details

credentials

Username and password to a protected website.

domain

NTLM authentication domain, if applicable.

formCharset

The authentication form character set for the form field values. Default is UTF-8.

formParams

Extra form parameters to submit with the authentication request.

formPasswordField

Name of the HTML field where the password is set. This is used only for "form" authentication.

formSelector

CSS selector that identifies the form in a login page. When set, it requires the specified form URL to be pointing to a login page containing a login form.

formUsernameField

Name of the HTML field where the username is set. This is used only for "form" authentication.

host

Host for the current authentication scope. Leave blank (default value) to indicate "any host" for the scope. Used for BASIC and DIGEST authentication.

kerberosConfig

Kerberos/SPNEGO authentication configuration. Used when the authentication method is set to KERBEROS or SPNEGO.

method

One of the supported authentication methods.

Allowed Values

  • FORM
  • BASIC
  • DIGEST
  • NTLM
  • SPNEGO
  • KERBEROS

preemptive

Whether to perform preemptive authentication (valid for basic authentication method).

realm

Realm name for the current authentication scope. Leave blank (default) to indicate "any realm" for the scope. Used for BASIC and DIGEST authentication.

url

URL for "form" authentication. The username and password will be posted to this URL (HTTP POST). This is used only for "form" authentication.

workstation

The NTLM authentication workstation name.