Relative Content

Tag Archive for spring-bootspring-mvcasynchronousspring-securitysecurity-context

SecurityFilterChain filter 2 times and lose authentication

Before async everything worked fine. So the problem is securityFilterChain filters 2 times and I think it should filter just once because filtering 2 times it doesn’t make sense and even if it’s correct to filter 2 times, it lose the authentication which throws the AuthenticationEntryPoint. I’ll paste here some junks of my code along with some debugging prints in the console.