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已經可以處理我的請求。 –