Skip to content

接入 Lantern 接口鉴权 - #237

Open
SPUERSAIYAN wants to merge 4 commits into
apache:dev-maven-releasefrom
SPUERSAIYAN:feature/lantern-minimal-integration-upstream
Open

SPUERSAIYAN wants to merge 4 commits into
apache:dev-maven-releasefrom
SPUERSAIYAN:feature/lantern-minimal-integration-upstream

Conversation

@SPUERSAIYAN

@SPUERSAIYAN SPUERSAIYAN commented Nov 10, 2026 •

Copy link
Copy Markdown

Related issue:#216

集群查询接口通过 Lantern 校验 Token 和角色权限,支持数据库配置的 PUBLIC、USER、ROLE 三种策略。

Dashboard 通过引入 Lantern 依赖、增加组件扫描路径和配置鉴权参数,成功加载 Lantern 核心 Bean,并复用 Dashboard 数据源。调试集群查询接口时,请求成功命中 Lantern 的 AuthenticationInterceptor.preHandle();从当前 Spring 容器中可获取鉴权服务、鉴权管理器、拦截器及 Mapper,验证了 Bean 注册及请求拦截生效
image
image

dubbo 配置
image
injvm 配置绑定对象
image

请求走本地调用
image

@SPUERSAIYAN SPUERSAIYAN changed the title Integrate Lantern HTTP authentication 接入 Lantern 接口鉴权 Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant