HttpAuth applies built-in HTTP authentication settings to a named request object before Request sends it.
Current script-engine support is focused on Basic and Digest authentication. Token-style schemes are usually modeled with Headers instead.
| Type | How it works | Extra fields |
|---|---|---|
Basic |
Adds an Authorization: Basic ... header to the request object. |
Credentials.Login, Credentials.Password |
Digest |
Stores credentials in the request object's credential cache for digest challenge/response flows. | Credentials.Login, Credentials.Password, Credentials.Uri, optional Credentials.Domain |
{
"HttpAuth": {
"RequestObjectName": "SystemRequest",
"Type": "Basic",
"Credentials": {
"Login": "%FuncUsername%",
"Password": "%FuncPassword%"
}
}
}{
"HttpAuth": {
"RequestObjectName": "SystemRequest",
"Type": "Digest",
"Credentials": {
"Login": "%FuncUserName%",
"Password": "%FuncPassword%",
"Uri": "%AddressGiven%/HTTP/Digest/",
"Domain": "example"
}
}
}| Name | Type | Required? | Description |
|---|---|---|---|
RequestObjectName |
String | Yes | Existing request object to modify. |
Type |
String | Yes | Authentication type. Supported values are Basic and Digest. |
Credentials.Login |
String expression | Yes | Username or login name. |
Credentials.Password |
Secret expression | Yes | Password for the selected auth type. |
Credentials.Uri |
String expression | Digest only | Absolute URI used to build the digest credential cache entry. |
Credentials.Domain |
String expression | No | Optional domain for digest auth. |
From samples/http/wordpress/WordPressHttp.json:
{
"NewHttpRequest": { "ObjectName": "SystemRequest" }
}
{
"HttpAuth": {
"RequestObjectName": "SystemRequest",
"Type": "Basic",
"Credentials": {
"Login": "%FuncUsername%",
"Password": "%FuncPassword%"
}
}
}From samples/http/wordpress/WordPressHttp.json:
{
"HttpAuth": {
"RequestObjectName": "SystemRequest",
"Type": "Basic",
"Credentials": {
"Login": "%AccountUserName%",
"Password": "%AccountPassword%"
}
}
}From samples/http/okta-discovery/Okta_WithDiscoveryAndGroupMembershipRestore.json:
{
"Headers": {
"RequestObjectName": "SystemRequest",
"AddHeaders": {
"Authorization": "SSWS %FuncPassword%"
}
}
}
HttpAuthdoes not currently implementBearer,NTLM, or similar schemes. UseHeadersto addAuthorization: Bearer ...,SSWS ..., or other token formats.
Basicauth writes anAuthorizationheader directly onto the request object.
Digestauth requiresCredentials.Uribecause the credential cache is keyed by URI.