I try to do what Assaf says in his first answer in this post (Spring Security Cookie + JWT authentication) but i don't understand that :
.addFilterAfter( getCookieAuthenticationFilter( new AndRequestMatcher( new AntPathRequestMatcher( "/account" ) ) ) , UsernamePasswordAuthenticationFilter.class );
What is AntPathRequestMatcher ?
When the token is expired, i want to logout the user, how can I do this ?
And I want add the jwtToken in every rest template request to my API, I just must add httpHeaders ?
Thanks for your answer.