mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-04 19:38:02 +00:00
fix 修复 dubbo 使用 tri 协议 header 请求头变为小写导致无法获取参数问题
This commit is contained in:
@@ -28,6 +28,10 @@ public class SaTokenDubboProviderFilter implements Filter {
|
||||
// RPC 调用鉴权
|
||||
if(SaManager.getConfig().getCheckSameToken()) {
|
||||
String idToken = invocation.getAttachment(SaSameUtil.SAME_TOKEN);
|
||||
// dubbo部分协议会将参数变为小写,详细参考:https://gitee.com/dromara/sa-token/issues/I4WXQG
|
||||
if(idToken == null) {
|
||||
idToken = invocation.getAttachment(SaSameUtil.SAME_TOKEN.toLowerCase());
|
||||
}
|
||||
SaSameUtil.checkToken(idToken);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user