GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||
GeezerVison is showing github.com — gh-128192: support HTTP sha-256 digest authentication as per RFC-7617 by calvinbui · Pull Request #128193 · python/cpython Conversation
|
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
cc @picnixz (cryptography expert) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…e-128192.02mEhD.rst Co-authored-by: Peter Bierma <[email protected]>
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
A preliminary round of comments. You can also update "RFC 2617" to "RFC 2617/7616" in the AbstractDigestAuthHandler comment.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| handler = AbstractDigestAuthHandler() | ||
| class TestDigestAlgorithms(unittest.TestCase): | ||
| def setUp(self): | ||
| self.handler = AbstractDigestAuthHandler() |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
In a follow-up PR (or this one), if you want/can, we can add tests for a full communication round where we request HTTP digest authentication.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
yep, next time!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Bénédikt Tran <[email protected]>
|
We are still missing the What's New entry and the modified NEWS entry. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…e-128192.02mEhD.rst Co-authored-by: Bénédikt Tran <[email protected]>
my bad, fixed |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We may also need an additional .. versionchanged:: next in the docs to mention SHA-256 in https://docs.python.org/3/library/urllib.request.html#urllib.request.AbstractDigestAuthHandler.
I think we'll also need a follow-up PR to update the docs because they are lacking IMO.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Bénédikt Tran <[email protected]>
added
what docs were you thinking of? i can make a new gh issue for it, as well as the complete end-to-end http digest auth test |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
None of the methods of AbstractDigestAuthHandler are actually documented so we may want to document them. If someone wants to subclass this interface, they need to know its usage. For now, let's wait for Gregory's feedback. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thank you for your contribution Calvin and Gregory for the merge/2nd review. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
i'm not surprised at that buildbot error. it is running in an unrealistic config without critical hash functions. we'll ultimately just need to decorate the test to indicate that it requires md5, sha1, and sha256 - skipping it otherwise. (see test_hashlib) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll do it tomorrow (it's almost midnight here and I'm no more on my dev session) or someone else somewhere else can add the decorators. However, maybe we should revert the commit just to avoid other PRs to have the buildbot failure in the meantime? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
No worries. That buildbot is an unstable unsupported configuration, no need to revert anything. It's there solely so that we can use it to identify and clean up test dependency declaration issues eventually. It doesn't block anything. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…C-7617 (pythonGH-128193) support sha-256 digest authentication Co-authored-by: Peter Bierma <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Gregory P. Smith <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.