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
The current behaviour of the middleware is to send a 401 response.
To customize that behaviour, I have to copy/paste the middleware to change it.
The package update process is less easier because I have to check if the default middleware definition has change. Also, a lot of information is lost in the way out (who/when/where/why/...).
To change that, I suggest that the default middleware throws a custom exception (AccessDeniedException?) with all informations. It will enter into errorHandler and allows to log or customize the expected response.
The text was updated successfully, but these errors were encountered:
The current behaviour of the middleware is to send a 401 response.
To customize that behaviour, I have to copy/paste the middleware to change it.
The package update process is less easier because I have to check if the default middleware definition has change. Also, a lot of information is lost in the way out (who/when/where/why/...).
To change that, I suggest that the default middleware throws a custom exception (AccessDeniedException?) with all informations. It will enter into
errorHandler
and allows to log or customize the expected response.The text was updated successfully, but these errors were encountered: