공부

[Spring] security http antMatcher with multiple paths

승가비 2023. 11. 3. 15:36
728x90
http 
  .requestMatchers()
       .antMatchers("/lti1p/**","/lti2p/**")
       .and()
  .addFilterBefore(ltioAuthProviderProcessingFilter, UsernamePasswordAuthenticationFilter.class)
  .authorizeRequests().anyRequest().hasRole("LTI")
  .and().csrf().disable();

https://stackoverflow.com/questions/25234164/spring-security-http-antmatcher-with-multiple-paths

 

spring security http antMatcher with multiple paths

I have the following spring security java config rule (with version 3.2.4) which works: http.antMatcher("/lti1p/**") .addFilterBefore(ltioAuthProviderProcessingFilter,

stackoverflow.com

 

728x90