Repository navigation
接入 Lantern 接口鉴权 - #237
Open
SPUERSAIYAN wants to merge 4 commits into
Open
接入 Lantern 接口鉴权#237SPUERSAIYAN wants to merge 4 commits into
SPUERSAIYAN wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue:#216
集群查询接口通过 Lantern 校验 Token 和角色权限,支持数据库配置的 PUBLIC、USER、ROLE 三种策略。
Dashboard 通过引入 Lantern 依赖、增加组件扫描路径和配置鉴权参数,成功加载 Lantern 核心 Bean,并复用 Dashboard 数据源。调试集群查询接口时,请求成功命中 Lantern 的 AuthenticationInterceptor.preHandle();从当前 Spring 容器中可获取鉴权服务、鉴权管理器、拦截器及 Mapper,验证了 Bean 注册及请求拦截生效


dubbo 配置


injvm 配置绑定对象
请求走本地调用
