Authentication Method

Basic Authentication is a simple authentication mechanism where the client sends HTTP requests with an Authorization header containing a Base64-encoded username and password.

How Basic Authentication Works

  1. The client sends a request to the server with an Authorization header in the format:

  2. The server decodes the Base64 string and verifies the username and password.

  3. If valid, the server processes the request and sends the response.

  4. If invalid, the server responds with 401 Unauthorized.

Authorization: Basic <Base64-encoded username:password>

Last updated