Skip to content

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

Description

@watano

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions