Skip to main content

Basic Auth

Authenticates requests using HTTP Basic authentication — a username and password encoded in the Authorization header.

Fields

FieldDefaultDescription
UsernameThe username
PasswordThe password
Header NameAuthorizationThe request header to set
Header PrefixBasicThe prefix before the encoded credentials
Character SetUTF-8Encoding used when building the header value. UTF-8 or ISO-8859-1

How it works

Blokkio concatenates username:password, base64-encodes the result, and sets the header:

Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

When to use it

Use Basic Auth when an API requires HTTP Basic authentication. Many legacy APIs and internal services use this scheme. For modern APIs, prefer Bearer Token or OAuth 2.0.