Basic Authentication

This is an example of the standard Basic Auth:

{
  "encode": "base64",
  "token_in_header": true,
  "content_type": "application/json",
  "header_key": "Authorization",
  "token_format": "{{identifier}}:{{token}}",
  "token_prefix": "Basic {{token_format}}"
}

Note, identifier is the username. You can flexibly include more things in e.g. the token_format . Below is an example of Zendesk, which has an additional /token .

"token_format": "{{identifier}}/token:{{token}}"

Authentication Config and Form

{
  "basic_auth": {
    "auth_details": {
      "title": "Auth Details",
      "type": "text"
    },
    "auth_token": {
      "title": "Auth Token",
      "type": "password"
    },
    "api_endpoint": {
      "title": "Base domain",
      "type": "text",
      "required": true,
      "placeholder": "https://{{SUB_DOMAIN}}.zendesk.com/api/v2/",
      "info": "Enter your subdomain for {{SUB_DOMAIN}}"
    }
  }
}

Last updated