Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace www-authenticate #495

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Replace www-authenticate #495

merged 1 commit into from
Oct 23, 2023

Conversation

mih
Copy link
Member

@mih mih commented Oct 22, 2023

Replace the www-authenticate dependency with internal function

The implementation is built on request's parsing utilities rather than elusive regexes. I find this better to grasp.

The associated test includes all www-authenticate test cases, plus a set of additional ones that focus on multi-challenge header specifications.

Closes #493

@mih mih added the semver-patch PR implies patch-level version increment (API stable) label Oct 22, 2023
@mih mih added this to the 1.0.2 milestone Oct 22, 2023
@codecov
Copy link

codecov bot commented Oct 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6a2d65e) 92.39% compared to head (ce6a9c5) 92.41%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #495      +/-   ##
==========================================
+ Coverage   92.39%   92.41%   +0.02%     
==========================================
  Files         125      126       +1     
  Lines        9549     9577      +28     
  Branches     1028     1036       +8     
==========================================
+ Hits         8823     8851      +28     
  Misses        704      704              
  Partials       22       22              
Files Coverage Δ
datalad_next/url_operations/http.py 94.62% <100.00%> (-0.06%) ⬇️
datalad_next/utils/requests_auth.py 93.27% <100.00%> (+1.44%) ⬆️
...ad_next/utils/tests/test_parse_www_authenticate.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The implementation is built on request's parsing utilities rather than
elusive regexes. I find this better to grasp.

The associated test includes all www-authenticate test cases, plus
a set of additional ones that focus on multi-challenge header
specifications.

Closes datalad#493
@mih mih merged commit 33b8f51 into datalad:main Oct 23, 2023
8 checks passed
@mih mih deleted the www-auth branch October 23, 2023 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch PR implies patch-level version increment (API stable)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace www-authenticate
1 participant