Authentication Flashcards
1
Q
HTTP Basic Auth
A
- Username/password are encoded (e.g. base64) but not encrypted. They are not hidden by HTTP.
- Easiest to Implement
- Stateless
1
Q
What request headers are required for HTTP Basic Auth?
A
Authorization: Basic
2
Q
What response headers are required for HTTP Basic Auth?
A
401 Unauthorized and WWW-Authenticate: Basic
3
Q
What files are considered authenticated when using HTTP Basic Auth?
A
If we authenticate at: dir/subdir/index.html, all files and subdirectories at or below will be considered authenticated (e.g. dir/subdir/1, dir/subdir/post.html)
4
Q
HTTP Digest Auth
A
- Uses cryptographic hashes (SHA-256 hash), designed to hide username and password
- Another encryption layer (TLS) below HTTP (HTTPS) is required for security
- Doesn’t prevent tampering with content, headers, paths, etc.
5
Q
A