General Information

Basic Authentication (Basic Auth)

Basic Auth is a standard HTTP authentication scheme in which a username and password are sent through the header using Base64 encoding. Before being encoded, the username and password are combined into a single string, separated by a colon (username: password). If the Basic Authentication header is invalid, the server will return a 404 Unauthorized Status response.
Generate Basic Auth​
The following are the steps for generating basic auth:

  1. Combine the username and password using a colon (:)

Format before combining:
Username : Aladdin
Password : Jasmine
Format after combining:
Aladdin:Jasmine

  1. Encode the combined result using Base64

Format before encoding:
Aladdin:Jasmine
Format after Base64 encoding:
QWxhZGRpbjpKYXNtaW5l

  1. Add it to the header

Format after Base64 encoding:
QWxhZGRpbjpKYXNtaW5l

Header Authentication

Basic QWxhZGRpbjpKYXNtaW5l
Scroll to Top