AS AgentScopeAPI 手册 / API Reference

SchedulerSecurityConfig

@Configuration @EnableWebFluxSecurity public class SchedulerSecurityConfig
源码Source io/agentscope/builder/web/config/SchedulerSecurityConfig.java:57–142

调度器 Security 配置,保存相关配置项。位于 io.agentscope.builder.web.config 包。核心成员包括 securityWebFilterChain、corsConfigurationSource。

WebFlux Security configuration for the builder scheduler plane.

  • /actuator/health|info — public

  • /api/** — requires an authenticated principal: a user JWT (same signing secret as the control plane) or the internal token (X-Builder-Internal-Token) for plane-to-plane calls from the data / control planes

  • /** — public (the scheduler serves no browser assets; only /api/** is protected)

方法摘要Method Summary

方法Method说明Description
public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http, JwtService jwtService, String internalToken)
执行 `securityWebFilterChain` 方法。
Performs the security web filter chain operation.
public CorsConfigurationSource corsConfigurationSource()
返回 `corsConfigurationSource` 结果。
Returns the cors configuration source.

方法详情Method Detail

securityWebFilterChain

public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http, JwtService jwtService, String internalToken)

执行 securityWebFilterChain 方法。

Performs the security web filter chain operation.

参数Parameters
名称Name类型Type说明Description
httpServerHttpSecurityHTTP(类型 `ServerHttpSecurity`)。The http.
jwtServiceJwtServiceJWT 服务(类型 `JwtService`)。The jwt service.
internalTokenString内部令牌(类型 `String`)。The internal token.
返回Returns SecurityWebFilterChain
返回SecurityWebFilterChain。Returns security web filter chain.
源码Source io/agentscope/builder/web/config/SchedulerSecurityConfig.java:61–92

corsConfigurationSource

public CorsConfigurationSource corsConfigurationSource()

返回 corsConfigurationSource 结果。

Returns the cors configuration source.

返回Returns CorsConfigurationSource
返回CorsConfigurationSource。Returns cors configuration source.
源码Source io/agentscope/builder/web/config/SchedulerSecurityConfig.java:94–104
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.