Bläddra i källkod

Merge branch 'release' of gitadmin/tuoheng_gateway into master

gitadmin-patch-1
gitadmin 2 år sedan
förälder
incheckning
16f2faf6d7
1 ändrade filer med 0 tillägg och 3 borttagningar
  1. +0
    -3
      src/main/java/com/tuoheng/gateway/config/GatewayFilterConfig.java

+ 0
- 3
src/main/java/com/tuoheng/gateway/config/GatewayFilterConfig.java Visa fil

@@ -51,7 +51,6 @@ public class GatewayFilterConfig implements GlobalFilter, Ordered {
List<Integer> roleIds = permissionMap.get(requestUrl);*/
//todo:获取当前系统、当前接口 可以访问的角色集合 end
String token = getToken(exchange);
System.out.println("登录人token:" + token);
String username = null;
Long oUserId = null;
List<String> authorityList = new ArrayList<>();
@@ -60,9 +59,7 @@ public class GatewayFilterConfig implements GlobalFilter, Ordered {
//token数据解析
DecodedJWT decodedJWT = JWT.decode(token);
username = decodedJWT.getClaim(USERNAME).asString();
System.out.println("登录人username:" + username);
oUserId = decodedJWT.getClaim(OUSERID).asLong();
System.out.println("登录人oUserId:" + oUserId);
authorityList = decodedJWT.getClaim(SCOPE).asList(String.class);
clientUserRoleDtoList = decodedJWT.getClaim(CLIENTROLELIST).asList(ClientUserRoleDto.class);
}

Laddar…
Avbryt
Spara