- Dubbo version: 3.1.0
- Operating System version: windows10
- Java version: 11
希望使用dubbo token 来鉴权
- 在服务提供者的实现注解上开启token
@DubboService(protocol = "rest", validation = "true", token = "true") public class AdMaterialController implements AdMaterialControllerI_Test { @Autowired private AdMaterialQueryService adMaterialQueryService; @Override public AdResponse edit(AdMaterialEdit req) { AdResponse<AdMaterialDto> resp = adMaterialQueryService.edit(req); return resp; }
}
2.查看nacos,元数据中有token
### Expected Behavior
![Screenshot_121](https://user-images.githubusercontent.com/11349435/204077860-13dd87bc-aea0-4954-b4f9-3844883b2171.png)
remoteToken为Null
后续 主动主动向RpcContext上下文中添加隐式参数,跟踪发现走的是
org.apache.dubbo.rpc.proxy.AbstractProxyInvoker 调用时根本没有使用隐式参数
Object value = doInvoke(proxy, invocation.getMethodName(), invocation.getParameterTypes(), invocation.getArguments());
### Actual Behavior