|
|
|
@ -45,8 +45,8 @@ public class AppPermissionSupportImpl implements AppPermissionSupport {
|
|
|
|
|
logger.debug("sso-str before hash:" + str);
|
|
|
|
|
String hash = DigestUtils.sha256Hex(str).toLowerCase();
|
|
|
|
|
if (!StringUtils.equals(hash, sign)) {
|
|
|
|
|
logger.error("[{}]请求的签名有误,使用节点 [{}] 签名", appid, NODES_IP_ADDRESSS.toString());
|
|
|
|
|
for (String nodeIp : NODES_IP_ADDRESSS) {
|
|
|
|
|
logger.error("[{}]请求的签名有误,使用节点 [{}] 签名", appid, nodeIp);
|
|
|
|
|
str = String.format(signTemplate, appid, auth, timestamp, requestUri, nodeIp);
|
|
|
|
|
logger.debug("NodeIp check sso-str before hash:" + str);
|
|
|
|
|
hash = DigestUtils.sha256Hex(str).toLowerCase();
|
|
|
|
|