Skip to content

[3.13] gh-155694: Scope HTTPPasswordMgr credentials by URL scheme (GH-155696) - #155970

Merged
Eclips4 merged 1 commit into
python:3.13from
miss-islington:backport-a7bb524-3.13
Aug 18, 2026
Merged

[3.13] gh-155694: Scope HTTPPasswordMgr credentials by URL scheme (GH-155696)#155970
Eclips4 merged 1 commit into
python:3.13from
miss-islington:backport-a7bb524-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Credentials stored for an https:// URI were also matched against the
corresponding http:// URI, since reduce_uri() discards the scheme.

HTTPPasswordMgr and HTTPPasswordMgrWithPriorAuth now compare the scheme
too; URIs registered without a scheme still match any scheme.
(cherry picked from commit a7bb524)

Co-authored-by: Łukasz lukaszlapinski7@gmail.com

…honGH-155696)

Credentials stored for an https:// URI were also matched against the
corresponding http:// URI, since `reduce_uri()` discards the scheme.

`HTTPPasswordMgr` and `HTTPPasswordMgrWithPriorAuth` now compare the scheme
too; URIs registered without a scheme still match any scheme.
(cherry picked from commit a7bb524)

Co-authored-by: Łukasz <lukaszlapinski7@gmail.com>
@Eclips4
Eclips4 merged commit a2773a3 into python:3.13 Aug 18, 2026
44 checks passed
@miss-islington
miss-islington deleted the backport-a7bb524-3.13 branch August 18, 2026 07:26
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.

3 participants