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

correct status codes for auth header issues #2

Merged
merged 1 commit into from
May 3, 2024

Conversation

mikemrm
Copy link
Collaborator

@mikemrm mikemrm commented May 3, 2024

The correct status code to return when an invalid authorization header has been provided is a 401 Unauthorized.

https://www.rfc-editor.org/rfc/rfc9110#name-www-authenticate

The correct status code to return when an invalid authorization header has been provided is a 401 Unauthorized.

https://www.rfc-editor.org/rfc/rfc9110#name-www-authenticate

Signed-off-by: Mike Mason <[email protected]>
@mikemrm mikemrm requested a review from a team as a code owner May 3, 2024 21:09
@mikemrm mikemrm merged commit 2ffbb3a into metal-toolbox:main May 3, 2024
1 check passed
@mikemrm mikemrm deleted the correct-auth-status-codes branch May 3, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants