feat(dubbo): 添加 RPC 调用 Same-Token 校验忽略功能#897
Open
Sleeeeeeeping wants to merge 1 commit intodromara:devfrom
Open
feat(dubbo): 添加 RPC 调用 Same-Token 校验忽略功能#897Sleeeeeeeping wants to merge 1 commit intodromara:devfrom
Sleeeeeeeping wants to merge 1 commit intodromara:devfrom
Conversation
- 在 SaTokenConfig 中新增 ignoreSameTokenPaths 配置项 - 添加 ignoreSameTokenPaths 的 getter 和 setter 方法 - 在 SaTokenDubbo3ProviderFilter 中实现白名单校验逻辑 - 支持通过配置跳过指定 RPC 接口的 Same-Token 校验 - 构建接口名:方法名:* 格式的 RPC 键进行匹配 - 保留原有的 Same-Token 校验机制作为默认行为
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.
场景:在 websocket 链接链路中,onConnect 未透传token 。同时又开启了checkSameToken=true。在onConnect 跟onDisconnect 方法里面调用 dubbo 方法更新用户上下线存在校验 sameToken 场景。