Open
Description
An AuthenticationServiceException
represents something that went wrong on the server side. As such, it shouldn't be handled by AuthenticationEntryPoint
s.
This means that likely is shouldn't be handled by ExceptionTranslationFilter
or any of the authentication filters.
However, because this class extends AuthenticationException
, it is required for each component to somehow opt-out of handing to its AuthenticationEntryPoint
.
One way to address this is to change AuthenticationServiceException
to no longer inherit from AuthenticationException
. Another way would be to add a new exception like AuthenticationServerErrorException
-- similar to spring-web
's HttpServerErrorException
-- that doesn't inherit from AuthenticationException
.