OMS接口添加白名单

main
kangwenjing 2026-04-07 14:04:44 +08:00
parent 592937db4e
commit 4f8c4bbd70
5 changed files with 10 additions and 4 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -4,10 +4,7 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="4c558d98-824e-4a48-ba48-bd2e6172f9f4" name="更改" comment="修改定位信息 0323"> <list default="true" id="4c558d98-824e-4a48-ba48-bd2e6172f9f4" name="更改" comment="修改定位信息 0323" />
<change beforePath="$PROJECT_DIR$/backend/src/main/resources/application-prod.yml" beforeDir="false" afterPath="$PROJECT_DIR$/backend/src/main/resources/application-prod.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/backend/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/backend/src/main/resources/application.yml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -92,6 +89,7 @@
<workItem from="1775197297892" duration="43000" /> <workItem from="1775197297892" duration="43000" />
<workItem from="1775197343053" duration="963000" /> <workItem from="1775197343053" duration="963000" />
<workItem from="1775198320186" duration="1451000" /> <workItem from="1775198320186" duration="1451000" />
<workItem from="1775200047785" duration="3902000" />
</task> </task>
<task id="LOCAL-00001" summary="修改定位信息 0323"> <task id="LOCAL-00001" summary="修改定位信息 0323">
<option name="closed" value="true" /> <option name="closed" value="true" />

View File

@ -5,12 +5,18 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order; import org.springframework.core.annotation.Order;
import org.springframework.security.config.Customizer; import org.springframework.security.config.Customizer;
import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer;
import org.springframework.security.config.http.SessionCreationPolicy; import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.web.SecurityFilterChain; import org.springframework.security.web.SecurityFilterChain;
@Configuration @Configuration
public class InternalIntegrationSecurityConfig { public class InternalIntegrationSecurityConfig {
@Bean
public WebSecurityCustomizer internalIntegrationWebSecurityCustomizer() {
return web -> web.ignoring().requestMatchers("/api/opportunities/integration/**");
}
@Bean @Bean
@Order(1) @Order(1)
public SecurityFilterChain internalIntegrationSecurityFilterChain(HttpSecurity http) throws Exception { public SecurityFilterChain internalIntegrationSecurityFilterChain(HttpSecurity http) throws Exception {

View File

@ -43,6 +43,7 @@ unisbase:
permit-all-urls: permit-all-urls:
- /actuator/health - /actuator/health
- /api/wecom/sso/** - /api/wecom/sso/**
- /api/opportunities/integration/**
internal-auth: internal-auth:
enabled: true enabled: true
secret: f0eb247f84db4e328fb27ce8ff6e7be96e73a53a7e9c4793395ad10d999e0d77 secret: f0eb247f84db4e328fb27ce8ff6e7be96e73a53a7e9c4793395ad10d999e0d77

View File

@ -48,6 +48,7 @@ unisbase:
permit-all-urls: permit-all-urls:
- /actuator/health - /actuator/health
- /api/wecom/sso/** - /api/wecom/sso/**
- /api/opportunities/integration/**
internal-auth: internal-auth:
enabled: true enabled: true
secret: f0eb247f84db4e328fb27ce8ff6e7be96e73a53a7e9c4793395ad10d999e0d77 secret: f0eb247f84db4e328fb27ce8ff6e7be96e73a53a7e9c4793395ad10d999e0d77