-
Choerodon平台版本:0.6.0.RELEASE
-
运行环境(如localhost或k8s):localhost
-
遇到问题时的前置条件:
-
问题描述:
Controller或者Service中,DetailsHelper.getUserDetails获取不到认证信息,请问yml是还要做什么特别的设置吗?还是说要通过Feign呢?
本地运行,启动了api-gateway,gateway-helper,ouath-server了么?登录之后才可以通过DetailsHelper.getUserDetails获取
起了耶,本地起了api-gateway,gateway-helper,ouath-server,manager-service,奇了怪了。
知道啦。没事啦,哈哈
for (PublicPermission publicPermission : publicPermissions) {
if (MATCHER.match(publicPermission.path, httpRequest.getRequestURI()) &&
publicPermission.method.matches(httpRequest.getMethod())) {
chain.doFilter(request, response);
return;
}
}