【功能优化】BPM:增加 rpc-api 白名单

pull/165/MERGE
YunaiV 2025-01-19 08:57:26 +08:00
parent 5d1c26c738
commit 3c2c966fbc
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package cn.iocoder.yudao.module.bpm.framework.security.config;
import cn.iocoder.yudao.framework.security.config.AuthorizeRequestsCustomizer;
import cn.iocoder.yudao.module.bpm.enums.ApiConstants;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
@ -29,6 +30,8 @@ public class SecurityConfiguration {
// Spring Boot Actuator 的安全配置
registry.requestMatchers("/actuator").permitAll()
.requestMatchers("/actuator/**").permitAll();
// RPC 服务的安全配置
registry.requestMatchers(ApiConstants.PREFIX + "/**").permitAll();
}
};