| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -44,7 +44,7 @@ public class InternalAuthProcessor extends AuthProcessor { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    private CpProperty cpProperty; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    @Override | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public Mono<Void> auth(ServerWebExchange exchange, GatewayFilterChain chain) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public ServerWebExchange auth(ServerWebExchange exchange, GatewayFilterChain chain) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        ServerHttpRequest request = exchange.getRequest(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        String requestUri = request.getPath().pathWithinApplication().value(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -56,7 +56,8 @@ public class InternalAuthProcessor extends AuthProcessor { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            try{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                baseTokenDto = getBaseTokenDto(token, jwtTokenUtils); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }catch(RenException e){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                return response(exchange,new Result<>().error(e.getCode(),e.getMsg())); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //return response(exchange,new Result<>().error(e.getCode(),e.getMsg()));
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                throw new RenException(e.getCode(), e.getMsg()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }else{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            baseTokenDto = null; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -92,12 +93,14 @@ public class InternalAuthProcessor extends AuthProcessor { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (needAuth(requestUri)) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // 校验token
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (StringUtils.isBlank(token)) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                return response(exchange, new Result<>().error(EpmetErrorCode.ERR10005.getCode(), EpmetErrorCode.ERR10005.getMsg())); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //return response(exchange, new Result<>().error(EpmetErrorCode.ERR10005.getCode(), EpmetErrorCode.ERR10005.getMsg()));
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                throw new RenException(EpmetErrorCode.ERR10005.getCode(), EpmetErrorCode.ERR10005.getMsg()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            try { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                validateTokenDto(baseTokenDto, token); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } catch (RenException e) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                return response(exchange, new Result<>().error(e.getCode(), e.getMsg())); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //return response(exchange, new Result<>().error(e.getCode(), e.getMsg()));
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                throw new RenException(e.getCode(), e.getMsg()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -119,10 +122,10 @@ public class InternalAuthProcessor extends AuthProcessor { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                exchange.getRequest().mutate().header(AppClientConstant.CUSTOMER_ID, customerId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            ServerHttpRequest build = exchange.getRequest().mutate().build(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return chain.filter(exchange.mutate().request(build).build()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return exchange.mutate().request(build).build(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return chain.filter(exchange); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return exchange; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    /** | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |