Closed
Description
Describe the bug
CasAuthenticationFilter
set a reference of SecurityContextRepository
(
setSecurityContextRepository(...)
defined in parent class AbstractAuthenticationProcessingFilter
not configurable anymore.The
securityContextRepository
reference is just for the call of successfulAuthentication(...)
(For me, seems like it is just duplicating the code defined in parent class
AbstractAuthenticationProcessingFilter
(securityContextRepository
reference defined in CasAuthenticationFilter
.Example:
@Override
protected final void successfulAuthentication(HttpServletRequest request, HttpServletResponse response,
FilterChain chain, Authentication authResult) throws IOException, ServletException {
boolean continueFilterChain = proxyTicketRequest(serviceTicketRequest(request, response), request);
super.successfulAuthentication(request, response, chain, authResult);
if (continueFilterChain) {
chain.doFilter(request, response);
}
}
Expected behavior
CasAuthenticationFilter
should be able to configure different SecurityContextRepository
by calling setSecurityContextRepository(...)