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

Map authentication failure to HTTP 401 #1917

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Conversation

bbockelm
Copy link
Contributor

The authentication failure error message was previously mapped to HTTP 500 (internal server error). 401 Unauthorized (despite its name) is what HTTP servers typically utilize for authentication problems.

@bbockelm
Copy link
Contributor Author

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401 for more information about the 401 status.

The authentication failure error message was previously mapped to
HTTP 500 (internal server error).  401 Unauthorized (despite its name)
is what HTTP servers typically utilize for authentication problems.
Copy link
Contributor

@ccaffy ccaffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks !

@amadio amadio merged commit 75c8e03 into xrootd:master Feb 22, 2023
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.

None yet

3 participants