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

Return Unauthorized status code for API calls #84

Open
devtobi opened this issue Aug 16, 2024 · 0 comments
Open

Return Unauthorized status code for API calls #84

devtobi opened this issue Aug 16, 2024 · 0 comments
Labels
Component: API-Gateway Issues regarding the API Gateway Priority: High The issue contains work with high priority. Type: Maintenance The issue contains maintenance work.

Comments

@devtobi
Copy link
Member

devtobi commented Aug 16, 2024

Is your feature request related to a problem? Please describe.
Currently the API gateway returns redirect status code 304 when trying to access endpoints without authorization.
This should only happen for entrypoints under /.
For API calls like /api/myendpoint a status code "401 Unauthorized" should be returned.
This indicates an authorization error to the frontend and avoid redirect loops when calling those API endpoints.

Describe the solution you'd like
Change requests to /api/** to return 401 when unauthorized

Describe alternatives you've considered

Additional context

@devtobi devtobi added Component: API-Gateway Issues regarding the API Gateway Type: Maintenance The issue contains maintenance work. Priority: High The issue contains work with high priority. and removed refactoring labels Aug 21, 2024
@devtobi devtobi moved this to Open in it@M RefArch Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: API-Gateway Issues regarding the API Gateway Priority: High The issue contains work with high priority. Type: Maintenance The issue contains maintenance work.
Projects
Status: Accepted
Development

No branches or pull requests

1 participant