You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.
Methods of tsec.authentication.SecuredRequestHandler intercepts all errors and returns Unauthorized status.
I think it should returns an InternalServerError, because it hides real problems to the clients when something wrong happens.
The text was updated successfully, but these errors were encountered:
If some requests generate 404s and some generate 401, and some generate 500, then an unauthorized user would be able to crawl URLs to figure out what endpoints are available or not, or what kind of requests generate these different errors. It's probably better to hide information completely to unauthorized users. In development you have the benefit of implementing some logging to determine if there are errors or not.
I agree that it is better to hide information completely to unauthorized users.
But, with the current behaviour, if the user is authorized or not and when the IO fail, the response from SecuredRequestHandler will always be 401. And the other middlewares can no longer intercept IO errors.
Methods of
tsec.authentication.SecuredRequestHandler
intercepts all errors and returnsUnauthorized
status.I think it should returns an
InternalServerError
, because it hides real problems to the clients when something wrong happens.The text was updated successfully, but these errors were encountered: