Hello Guys,
In the process of setting up to filter chains to handle both form based and API based authentication I have come across an issue related he proper redirecting after successful authentication.
couple of things.
1. When using SavedRequestAwareAuthenticationSuccessHandler it seems to me that the request is actually saved in the ExceptionTranslationFilter however this is called after the my AuthenticationFilter filter which uses a SavedRequestAwareAuthenticationSuccessHandler one successful authenticaion. According to the reading I have done the order I have defined the filters is correct
<sec:filter-chain pattern="/dyn/api/**" filters="securityContextFilterWithASCFalse,
apikeyAuthFilter,
servletApiFilter,
exceptionTranslationFilterForRestServices,
filterSecurityInterceptor"/>
Secondly the redirect URL seems to be incorrect in any case since the FirewalledRequestWrapper is stripping most of the path related information?
I will keep diving deeper but if anyone has any initial thoughts that would be helpful?
Thanks,
Serge


Reply With Quote
