TASK:证书接收测试;

This commit is contained in:
shahaibo
2024-01-17 10:52:27 +08:00
parent 393c9ec941
commit 5d3657bba2

View File

@@ -63,7 +63,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
httpSecurity.cors().disable() // 禁用 CSRF httpSecurity.cors().disable() // 禁用 CSRF
.authorizeRequests() .authorizeRequests()
.antMatchers(securityProperties.getIgnorePaths()).permitAll() .antMatchers(securityProperties.getIgnorePaths()).permitAll()
.antMatchers("/api/third/party/your-secured-endpoint").authenticated() // 需要验证的接口 // .antMatchers("/api/third/party/your-secured-endpoint").authenticated() // 需要验证的接口
.anyRequest().permitAll() .anyRequest().permitAll()
.and() .and()
.x509() .x509()