Browse Source

市北数字社区客户直接用他们的token

dev_shibei_match
jianjun 4 years ago
parent
commit
78896f9870
  1. 9
      epmet-gateway/src/main/java/com/epmet/auth/InternalAuthProcessor.java

9
epmet-gateway/src/main/java/com/epmet/auth/InternalAuthProcessor.java

@ -92,17 +92,16 @@ public class InternalAuthProcessor extends AuthProcessor {
} }
logger.info("stringResult"+ JSON.toJSONString(stringResult)); logger.info("stringResult"+ JSON.toJSONString(stringResult));
} }
//市北数字社区的token 直接替换下
if (CustomerIdConstant.SHI_BEI_CUSTOMER_ID.equals(customerId)){
token = baseTokenDto.getToken();
}
} }
} }
if (baseTokenDto != null) { if (baseTokenDto != null) {
customerId = baseTokenDto.getCustomerId(); customerId = baseTokenDto.getCustomerId();
} }
//市北数字社区的token 直接替换下
if (CustomerIdConstant.SHI_BEI_CUSTOMER_ID.equals(customerId)){
token = baseTokenDto.getToken();
}
if (needAuth) { if (needAuth) {
validateToken(baseTokenDto, token, expiration); validateToken(baseTokenDto, token, expiration);

Loading…
Cancel
Save