Skip to content

"set authorizationValue to authentication entry" is insufficiently precise #1497

Open
@domenic

Description

@domenic

https://fetch.spec.whatwg.org/commit-snapshots/1fbc40c1df1a353ce1a49de8e4b2c753563e265d/#http-network-or-cache-fetch

If there’s an authentication entry for httpRequest and either httpRequest’s use-URL-credentials flag is unset or httpRequest’s current URL does not include credentials, then set authorizationValue to authentication entry.

"authentication entry" is defined as

An authentication entry and a proxy-authentication entry are tuples of username, password, and realm, used for HTTP authentication and HTTP proxy authentication, and associated with one or more requests.

At the very least, I'd expect this to say "the authentication entry for httpRequest". Ideally, there'd be some algorithm for deriving an authentication entry from a request, including things like:

  • Looking things up in a partitioned user-agent store
  • Looking at the request's URL's username and password components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions