首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >TSF使用自定义标签服务鉴权不生效是为什么?

TSF使用自定义标签服务鉴权不生效是为什么?

提问于 2020-03-14 22:32:44
回答 2关注 0查看 520

使用TSF SDK 1.19.0-Greenwich-RELEASE,在consumer demo中自定义标签代码为:

代码语言:js
复制
@RequestMapping(value = "/echo-rest/{str}", method = RequestMethod.GET)
	public String restProvider(@PathVariable String str,
							   @RequestParam(required = false) String tagName,
							   @RequestParam(required = false) String tagValue) {
		if (!StringUtils.isEmpty(tagName)) {
			TsfContext.putTag(tagName, tagValue);
            TsfContext.putCustomMetadata(new CustomMetadata(tagName, tagValue));
		}
		return restTemplate.getForObject("http://provider-demo/echo/" + str, String.class);
	}

访问的URL:http://xxxx:18083/echo-rest/test123?tagName=user&tagValue=tom

TSF控制台设置服务consumer鉴权白名单,自定义标签:key=user,value=tom

但是访问被拒绝403,不知道哪里出了问题

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档