DAFramework icon indicating copy to clipboard operation
DAFramework copied to clipboard

在API Gateway层进行token和权限检查

Open watano opened this issue 9 years ago • 0 comments

使用ZuulFilter在路由前进行token和权限检查.

  1. 登录后使用cookies在前端保存token信息, 每次服务端请求都在header中附带token;
  2. 在Zuul路由请求时实现一个ZuulFilter进行token检查及url的权限检查;(URL权限检查)
  3. 在commons中使用公用方法根据token检查对应用户是否拥有权限;(数据权限检查)

watano avatar May 09 '17 08:05 watano