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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

What request headers are required for HTTP Basic Auth?

A

Authorization: Basic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What response headers are required for HTTP Basic Auth?

A

401 Unauthorized and WWW-Authenticate: Basic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly