-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
✨ Change authentication failure status from 403 to 401 #13326
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
|
Hi! Could someone please add the appropriate labels to this PR? This change modifies security status codes to follow HTTP standards, so I believe it needs a |
|
Fixes #10177 |
|
Label |
|
Hi maintainers, Just wanted to check if there's any feedback on this PR or if there's anything I can improve to help move it forward. @alejsdev - would appreciate your thoughts when you have a moment. Thanks! |
|
Hey All, is anything pending here still to get this merged? We currently have to maintain a custom HTTPBearer class just to change this from 403 -> 401 |
|
@mnshai: thanks for this contribution, it's a detailed and thoughtful PR. As you mentioned: while correct, this will be a breaking change. For that reason, we'll likely go with #13786 instead, which provides an additional fall-back mechanism for users that need more time to update. As such, I'll go ahead and close this one. Anyone who has time, is welcome to help review #13786 ! |
Changes
Requirements
Standards Reference
Breaking Change
This is technically a breaking change as it modifies response status codes, but brings the implementation in line with HTTP standards where:
Checklist