-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
🐛 Ensure that HTTPDigest
only raises an exception when auto_error is True
#2939
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2939 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 540 540
Lines 13969 13948 -21
=========================================
- Hits 13969 13948 -21 ☔ View full report in Codecov by Sentry. |
📝 Docs preview for commit 10bce4a at: https://604bacb90b626e35b36d5ef0--fastapi.netlify.app |
@tiangolo Is there anything I can do to get this PR moving forward? |
@juntatalor @tiangolo Gentle nudge 👉🏻 |
10bce4a
to
88ccc3c
Compare
I just rebased my branch with master. |
66abd38
to
29abff8
Compare
@juntatalor @tiangolo @cikay @yezz123 This is ready to go, not sure what's the hold up... No offense but I'd like to not have to rebase it for another year 🙃 |
📝 Docs preview for commit 6328d1a at: https://624db921ff9a9a42fdb83026--fastapi.netlify.app |
📝 Docs preview for commit 582dafe at: https://62705ddda48eeb2f877c526e--fastapi.netlify.app |
@tiangolo I know you are a busy person but it's been more than a year since I have opened this tiny PR... Could you at least respond to let me know if I should keep it up to date or not? Or give me pointers as to what to do to get it merged? |
📝 Docs preview for commit 69926bb at: https://628378da0fe4b865e5e5cc9c--fastapi.netlify.app |
📝 Docs preview for commit 4e201d4 at: https://62c60f000d2b5d0075c87a57--fastapi.netlify.app |
4e201d4
to
1d577cd
Compare
📝 Docs preview for commit 1d577cd at: https://630ec91c40bedd3307cf73e9--fastapi.netlify.app |
1d577cd
to
2262c94
Compare
📝 Docs preview for commit 2262c94 at: https://634ddec3af32704c95e90354--fastapi.netlify.app |
2262c94
to
b3e2a5d
Compare
📝 Docs preview for commit b3e2a5d at: https://636135f88e0a60005f6cef94--fastapi.netlify.app |
12804b8
to
d168183
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem is still relevant to FastAPI 0.110.0.
This PR fixes it
583765f
to
fa6e4cf
Compare
fa6e4cf
to
d4610d0
Compare
d4610d0
to
fb19188
Compare
fb19188
to
fcc0bb0
Compare
f8a70de
to
1da302a
Compare
1da302a
to
3edc57c
Compare
9fe5692
to
d7121b5
Compare
d7121b5
to
5369e22
Compare
HTTPDigest
only raises an exception when auto_error is True
@arthurio: apologies for the super long delay in responding to this, and thanks for your patience and for keeping this PR up-to-date 🙏 I've moved it to my queue to review it in the next few days/weeks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bug fix looks correct to me. It's a little puzzling why the test suite was specifically testing for a 403
in this case, as this does not seem to be the expected/documented behaviour, so I agree with changing the test as this PR does.
I'll run this by Tiangolo for a final review. Thanks again for your patience! 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tiangolo You are very welcome, thank you for everything you do! |
I believe
HTTPDigest
should follow the same pattern as other authentication mechanisms and raise an exception only ifauto_error
is True.