We use RequestHeaderAuthenticationFilter
as to implement pre-authentication strategy and PreAuthenticatedAuthenticationProvider
as the authentication p
This might be a good approach:
1) Create a class that extends SavedRequestAwareAuthenticationSuccessHandler
public class MyCustomSuccessHandler extends SimpleUrlAuthenticationSuccessHandler {
@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response,
Authentication authentication) throws ServletException, IOException {
2) Assign the "success handler" to your security filter: