提供给外部使用的token验证
							parent
							
								
									a9f1104178
								
							
						
					
					
						commit
						9691147e75
					
				| 
						 | 
					@ -31,7 +31,7 @@ public class WhiteApiCache implements InitializingBean {
 | 
				
			||||||
        taskExecutor.execute(() -> {
 | 
					        taskExecutor.execute(() -> {
 | 
				
			||||||
            //设置白名单
 | 
					            //设置白名单
 | 
				
			||||||
            List<String> whiteList = Lists.newArrayList("^GET:/v1/users/permissions$",
 | 
					            List<String> whiteList = Lists.newArrayList("^GET:/v1/users/permissions$",
 | 
				
			||||||
                    "^GET:/v1/login/detail$", "^GET:/v1/messages$", "^GET:/v1/token$",
 | 
					                    "^GET:/v1/login/detail$", "^GET:/v1/messages$", "^GET:/v1/token$","^POST:/v1/token/check$",
 | 
				
			||||||
                    "^POST:/v1/users/logout$", "^POST:/v1/tenants/logout$", "^GET:/v1/config/license$", "^GET:/v1/roles/ids$");
 | 
					                    "^POST:/v1/users/logout$", "^POST:/v1/tenants/logout$", "^GET:/v1/config/license$", "^GET:/v1/roles/ids$");
 | 
				
			||||||
            redisTemplate.opsForValue().set("permission_white", JSONObject.toJSONString(whiteList));
 | 
					            redisTemplate.opsForValue().set("permission_white", JSONObject.toJSONString(whiteList));
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue