gh-155694: Scope HTTPPasswordMgr credentials by URL scheme - #155696
Conversation
Documentation build overview
15 files changed ·
|
|
GH-155968 is a backport of this pull request to the 3.15 branch. |
|
GH-155969 is a backport of this pull request to the 3.14 branch. |
|
GH-155970 is a backport of this pull request to the 3.13 branch. |
|
GH-155971 is a backport of this pull request to the 3.12 branch. |
|
GH-155972 is a backport of this pull request to the 3.11 branch. |
|
GH-155973 is a backport of this pull request to the 3.10 branch. |
…hon#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.
…-155696) (#155969) gh-155694: Scope HTTPPasswordMgr credentials by URL scheme (GH-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>
…-155696) (#155970) gh-155694: Scope HTTPPasswordMgr credentials by URL scheme (GH-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>
|
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.
HTTPPasswordMgrcan send saved HTTPS credentials via HTTP because of incorrect scheme matching #155694