Skip to content

[3.15] gh-60299: Fix ProxyDigestAuthHandler credential lookup to use proxy authority (GH-160528) - #160914

Merged
orsenthil merged 1 commit into
python:3.15from
miss-islington:backport-9b3e095-3.15
Oct 29, 2026
Merged

orsenthil merged 1 commit into
python:3.15from
miss-islington:backport-9b3e095-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

AbstractDigestAuthHandler.get_authorization() always looked up
credentials using the target request URL (req.full_url), even when
invoked via ProxyDigestAuthHandler, whose credentials are registered
against the proxy's host:port.

The lookup never matched, no Proxy-Authorization header was produced,
and proxy digest auth failed with an unhandled 407.
(cherry picked from commit 9b3e095)

Co-authored-by: Senthil Kumaran senthil@python.org
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

…roxy authority (pythonGH-160528)

AbstractDigestAuthHandler.get_authorization() always looked up
credentials using the target request URL (req.full_url), even when
invoked via ProxyDigestAuthHandler, whose credentials are registered
against the proxy's host:port.

The lookup never matched, no Proxy-Authorization header was produced,
and proxy digest auth failed with an unhandled 407.
(cherry picked from commit 9b3e095)

Co-authored-by: Senthil Kumaran <senthil@python.org>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@orsenthil orsenthil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@orsenthil
orsenthil enabled auto-merge (squash) October 29, 2026 18:31
@orsenthil
orsenthil merged commit 16b6719 into python:3.15 Oct 29, 2026
60 checks passed
@miss-islington
miss-islington deleted the backport-9b3e095-3.15 branch October 29, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants