Quester Studio

basicAuth

Set Authorization Basic on later HTTP requests

Resolves username and password, then stores Authorization: Basic <base64(user:pass)> in httpAuthHeaders. Later http nodes on this run send that header unless they set Authorization themselves.

This node does not send a request. The wire is passthrough. The password is not included in this node’s output. Prefer {{secrets.*}} (or {{input.*}}) for credentials. Empty password after template resolve fails at execute time.

If a bearer ran earlier, this helper overwrites Authorization (same header name). In the sample, that is after me and mycart already used Bearer.

Typical chain: … → mycart (still Bearer) → listProducts (skipInheritedAuth) → basicAuth → http (now Basic). Sample: auth-helpers.flow.json.

in ×1 basicAuth out ×1
Writes Authorization Basic; wire passthrough. Multiple outgoing edges (fan-out) share the same output.

Data

FieldTypeDescription
labelstringOptional UI label
usernamestringTemplated username
passwordstringRequired; templated

Input / output

Value
Execute inputPrevious node output (passthrough)
OutputSame as input; credentials not echoed
VarsMerges httpAuthHeaders.Authorization for following HTTP nodes

Examples

Input → basicAuth → HTTP

Previous node puts credentials on the run payload (or use secrets). Next HTTP has no Authorization header.

start → creds (input) → basic (basicAuth) → call (http GET)
{
  "id": "creds",
  "type": "input",
  "data": {
    "value": { "username": "emilys", "password": "emilyspass" }
  }
}
{
  "id": "basic",
  "type": "basicAuth",
  "data": {
    "username": "{{input.username}}",
    "password": "{{input.password}}"
  }
}
{
  "id": "call",
  "type": "http",
  "data": {
    "method": "GET",
    "url": "{{env.API_BASE}}/protected",
    "headers": {}
  }
}

Inspect call’s request snapshot for Authorization: Basic …. The basic step output must not contain the password.

Secrets instead of input

{
  "type": "basicAuth",
  "data": {
    "username": "{{secrets.username}}",
    "password": "{{secrets.password}}"
  }
}