Spring MVC security with third party authentication, how to do?

0 投票
最新提问 用户: (120 分)

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.

登录 或者 注册 后回答这个问题。

欢迎来到 Security Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...