Description
The FormAuthenticationFilter and the BasicAuthenticationFilter perform repetitive logic in the onAccessDenied implementation to automate an authentication during an authentication request. For example:
This should be abstracted and represented in the parent AuthenticatingFilter abstract class to 1) reduce code in the children classes and 2) make this accessible for custom AuthenticatingFilter subclasses.