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
Any unhandled authorization failures are not propagated to the ExceptionTranslationFilter and instead result in a 500.
Security currently supports using @HandleAuthorizationDenied to provide behavior like ignoring that field when the response is serialized. However, it would be helpful to be able to leverage the logic in ExceptionTranslationFilter, including calling any configured AccessDeniedHandler.
One way to do this may be to provide an implementation of AbstractView that is used by a default exception handler. It would ideally have a similar effect to:
When using
@AuthorizeReturnObject
on a controller method like so:Any unhandled authorization failures are not propagated to the
ExceptionTranslationFilter
and instead result in a 500.Security currently supports using
@HandleAuthorizationDenied
to provide behavior like ignoring that field when the response is serialized. However, it would be helpful to be able to leverage the logic inExceptionTranslationFilter
, including calling any configuredAccessDeniedHandler
.One way to do this may be to provide an implementation of
AbstractView
that is used by a default exception handler. It would ideally have a similar effect to:but without applications needing to register it.
The text was updated successfully, but these errors were encountered: