-
Notifications
You must be signed in to change notification settings - Fork 23.2k
Incorrect WWW-Authenticate formats #36961
Copy link
Copy link
Closed
Labels
Content:HTTPHTTP docsHTTP docs
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate
What specific section or headline is this issue about?
Syntax
What information was incorrect, unhelpful, or incomplete?
These formats do not conform to RFC 9110:
WWW-Authenticate: <auth-scheme> realm=<realm> token68
WWW-Authenticate: <auth-scheme> realm=<realm> token68 auth-param1=auth-param1-token , ..., auth-paramN=auth-paramN-token
WWW-Authenticate: <auth-scheme> realm=<realm> auth-param1=auth-param1-token, ..., auth-paramN=auth-paramN-token
WWW-Authenticate: <auth-scheme> token68 auth-param1=auth-param1-token, ..., auth-paramN=auth-paramN-token
What did you expect to see?
They should not be documented.
Do you have any supporting links, references, or citations?
Per RFC 9110 section 11.6.1, WWW-Authenticate header value is defined as:
WWW-Authenticate = 1#challenge
Where challenge is defined as (section 11.3):
challenge = auth-scheme [ 1*SP ( token68 / #auth-param ) ]
If I'm reading this correctly, there can only be either a single token68 or a list of auth-param, and not both.
Do you have anything more you want to share?
It may also be helpful to document cases where there are multiple challenges in a single header:
WWW-Authenticate: <auth-scheme1> auth-param1=token1, ..., auth-paramN=auth-paramN-token, <auth-scheme2> auth-param1=token1, ..., auth-paramN=auth-paramN-token
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Content:HTTPHTTP docsHTTP docs