Rory Winston (Migrated from SEC-978) said:
I would like to be able to add specific behaviour on successful authentication. I have a custom filter which is a subclass of AbstractPreAuthenticatedProcessingFilter, and I would like to be able to override or at least extend the behaviour of successfulAuthentication(). Would it be possible to add some kind of template onSuccessfulAuthentication method in the base class that could be called within successfulAuthentication()?
e.g. abstract void onSuccessfulAuthentication(HttpServletRequest request ….. )
At the moment I cant find a way to override this in my subclasses.
Luke Taylor said:
You can already override the behaviour of successfulAuthentication since it’s a protected method. Is there some additional requirement that you have? I can’t really see what would prevent you from overriding the behaviour as it stands.
I can’t see any requirement for this, given that the current successfulAuthentication method is effectively just:
and is already protected.