mirror of https://gitee.com/maxjhandsome/pig
💚 Fixing CI Build. format java code
This commit is contained in:
parent
cd387aa904
commit
8a370b117d
|
@ -59,7 +59,8 @@ public class PasswordDecoderFilter extends AbstractGatewayFilterFactory {
|
|||
ServerHttpRequest request = exchange.getRequest();
|
||||
|
||||
// 不是登录请求,直接向下执行
|
||||
if (!CharSequenceUtil.containsAnyIgnoreCase(request.getURI().getPath(), SecurityConstants.OAUTH_TOKEN_URL)) {
|
||||
if (!CharSequenceUtil.containsAnyIgnoreCase(request.getURI().getPath(),
|
||||
SecurityConstants.OAUTH_TOKEN_URL)) {
|
||||
return chain.filter(exchange);
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
package com.pig4cloud.pig.gateway.filter;
|
||||
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.pig4cloud.pig.common.core.constant.CacheConstants;
|
||||
|
@ -61,8 +60,7 @@ public class ValidateCodeGatewayFilter extends AbstractGatewayFilterFactory<Obje
|
|||
ServerHttpRequest request = exchange.getRequest();
|
||||
boolean isAuthToken = CharSequenceUtil.containsAnyIgnoreCase(request.getURI().getPath(),
|
||||
SecurityConstants.OAUTH_TOKEN_URL);
|
||||
boolean isIgnoreClient = configProperties.getIgnoreClients()
|
||||
.contains(WebUtils.getClientId(request)[0]);
|
||||
boolean isIgnoreClient = configProperties.getIgnoreClients().contains(WebUtils.getClientId(request)[0]);
|
||||
try {
|
||||
// only oauth and the request not in ignore clients need check code.
|
||||
if (isAuthToken && !isIgnoreClient) {
|
||||
|
|
Loading…
Reference in New Issue