1
我加入到Spring配置自己的自定义过滤器:Spring安全筛选器不起作用。春天的bug?
@Override
public void configure(HttpSecurity http) throws Exception {
http.addFilterBefore(filter, BasicAuthenticationFilter.class);
http.csrf().disable();
http.authorizeRequests().antMatchers("/oauth/token").fullyAuthenticated();
}
但doFilter的(......)不调用。我需要在请求被spring-security-oauth“吃掉”之前处理请求。如何使它工作?
BasicAuthenticationFilter已经可以处理我的请求。 –