|
|
@ -77,10 +77,13 @@ public class CpAuthGatewayFilterFactory extends AbstractGatewayFilterFactory<CpA |
|
|
|
case AuthTypeConstant.AUTH_TYPE_ALL: |
|
|
|
externalAuthProcessor.auth(exchange, chain); |
|
|
|
internalAuthProcessor.auth(exchange, chain); |
|
|
|
break; |
|
|
|
case AuthTypeConstant.AUTH_TYPE_EXTERNAL: |
|
|
|
externalAuthProcessor.auth(exchange, chain); |
|
|
|
break; |
|
|
|
case AuthTypeConstant.AUTH_TYPE_INTERNAL: |
|
|
|
internalAuthProcessor.auth(exchange, chain); |
|
|
|
break; |
|
|
|
} |
|
|
|
} catch (RenException e) { |
|
|
|
return response(exchange, new Result<>().error(e.getCode(), e.getMessage())); |
|
|
|