What is Basic Authentication?
Ask by ICSM Computer
Updated 27 Jul 2025
Basic 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