What is Basic Authentication?
124
27-Jul-2025
Updated on 27-Jul-2025
ICSM Computer
27-Jul-2025Basic Authentication is a lightweight authentication scheme based on a username and password to gain access to a resource. It's an HTTP standard and functions by including credentials encoded in base64 with every request.
How Basic Authentication Works
401 Unauthorized.Example: Base64 Header
For username:
admin, password:1234Base64 encoding of
admin:1234is:In Code
Example in C#
Example in JavaScript (Fetch)
Security Note