Concept Flow - HTTP Basic authentication
Client sends HTTP request
Server checks Authorization header
Is header present?
No→Respond 401 Unauthorized
Yes
Decode Base64 credentials
Validate username and password
Are credentials valid?
No→Respond 401 Unauthorized
Yes
Grant access to requested resource
The client sends a request with credentials encoded in the Authorization header. The server decodes and validates them, then allows or denies access.