티스토리 뷰

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

'공부' 카테고리의 다른 글

[Spring] @Value  (0) 2023.11.03
[Spring] Query String 파싱, @RequestParam  (0) 2023.11.03
[locale] zh-Hans, zh-Hant, zh-rCN, zh-tTW  (0) 2023.11.03
[IntelliJ] Use single level import  (0) 2023.11.03
[Spring] @PathVariable 기본값 설정하기  (0) 2023.11.03
댓글