Skip to content

gh-155694: Scope HTTPPasswordMgr credentials by URL scheme - #155696

Open
lkk7 wants to merge 1 commit into
python:mainfrom
lkk7:fix-http-password-mgr-scheme
Open

gh-155694: Scope HTTPPasswordMgr credentials by URL scheme#155696
lkk7 wants to merge 1 commit into
python:mainfrom
lkk7:fix-http-password-mgr-scheme

Conversation

@lkk7

@lkk7 lkk7 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #155694.

Scope HTTPPasswordMgr credentials by URL scheme. This prevents a situation where credentials stored for an HTTPS URL match a corresponding HTTP URL. URIs without a scheme will still match any scheme.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34048502 | 📁 Comparing b18449c against main (1c9521f)

  🔍 Preview build  

2 files changed
± library/urllib.request.html
± whatsnew/changelog.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTTPPasswordMgr can send saved HTTPS credentials via HTTP because of incorrect scheme matching

1 participant