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
The client sends a request to the server with an
Authorization
header in the format:The server decodes the Base64 string and verifies the username and password.
If valid, the server processes the request and sends the response.
If invalid, the server responds with 401 Unauthorized.
Last updated