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

Use 403 when actions are forbidden, not 401 #522

Merged
merged 1 commit into from Mar 15, 2023

Conversation

FuhuXia
Copy link
Contributor

@FuhuXia FuhuXia commented Mar 13, 2023

Useing current 401 causes some issues when saml2auth is enabled and the ckan app has an internal url behind a proxy, as noticed in GSA/data.gov#3863.

Changing 401 to 403 resolved the issue. It is the recommend way to respond to unauthorized request in the CKAN core: ckan/ckan#2846

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

2 participants