-
Notifications
You must be signed in to change notification settings - Fork 196
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
API requests from an unauthorized user should return 403 #5938
Comments
discussed in #5742 (comment) |
If we could decide on the expected behavior (status-code) on non-admin user trying to do admin things then we can adjust the tests accordingly. CC @micbar |
I agree with that in the current context. So 403 is the way to go. |
This returns |
Describe the bug
If an unauthorized user tries to do something then HTTP status code 403 should be returned
Scenarios
Expected behavior
HTTP status code 403
Actual behavior
HTTP status code 401 or some 4xx
The text was updated successfully, but these errors were encountered: