提交 29d62ab4 编写于 作者: sq3536's avatar sq3536

排除权限

上级 42bb98b5
......@@ -4,6 +4,7 @@ package cn.ibizlab.api.rest.extensions;
import cn.ibizlab.core.uaa.extensions.service.SysAppService;
import cn.ibizlab.core.uaa.extensions.service.UAACoreService;
import cn.ibizlab.util.client.IBZOUFeignClient;
import cn.ibizlab.util.helper.CachedBeanCopier;
import cn.ibizlab.util.security.AuthTokenUtil;
import cn.ibizlab.util.security.AuthenticationInfo;
import cn.ibizlab.util.security.AuthenticationUser;
......@@ -59,10 +60,12 @@ public class ClientAuthenticationResource
final String token = jwtTokenUtil.generateToken(user);
user.setPermissionList(null);
AuthenticationUser user2=new AuthenticationUser();
CachedBeanCopier.copy(user,user2);
user2.setAuthorities(null);
user2.setPermissionList(null);
// 返回 token
return ResponseEntity.ok().body(new AuthenticationInfo(token,user));
return ResponseEntity.ok().body(new AuthenticationInfo(token,user2));
}
@PostMapping(value = "uaa/login")
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册