Authentication, security & extensions
10Challenge-response authentication, origin boundaries, and registered extensions keep HTTP extensible without making every field trustworthy.
New protocol elements need explicit behavior and interoperability rules.
Key idea: Authenticate within the right protection space.
Terms
- Client / user agent
- The app making a request; in this example, your browser.
- Origin server
- The server responsible for providing an answer for the target resource.
- Request
- A message asking for an action on a resource.
- Response
- The server’s message reporting the result of a request.
- Resource
- Something identified by a URI, such as the page at /story.
- Representation
- Content and descriptive information that convey a resource’s state, such as an HTML page.
- Semantics
- What a message or protocol element means, independently of how it travels.
- Authentication
- Checking identity claims under an authentication scheme.
- Authorization
- Deciding which actions a caller is allowed to perform.
- Challenge
- A response describing an authentication scheme and its parameters.
- Protection space
- The scope within which credentials can be applied.
- 401 / 407
- 401 challenges origin authentication; 407 challenges proxy authentication.
Rules & examples
Authenticate within the right protection space.
- 401 challenges origin authentication with WWW-Authenticate; 407 challenges proxy authentication separately.
- Credentials and sensitive information require appropriate transport and origin handling.
- Methods, status codes, fields, and authentication schemes have extension mechanisms and registry rules.
RFC 9110 §17 also covers injection, request smuggling, intermediary risks, privacy, and resource exhaustion. An HTTP success status alone does not establish authorization or trustworthy content.
Predict: Does a 200 response prove the returned content is trustworthy?
Check your answer
No. Success status alone does not establish trustworthy content or permission for subsequent actions.
Sources
New to this? Start hereA quick picture + helpful background
A request starts a conversation.
A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.