|
@@ -3,6 +3,7 @@ package com.fdkankan.cloud.acl.factory.sts;
|
|
import cn.hutool.core.date.DateUtil;
|
|
import cn.hutool.core.date.DateUtil;
|
|
import cn.hutool.core.thread.ThreadUtil;
|
|
import cn.hutool.core.thread.ThreadUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
import com.aliyun.sts20150401.Client;
|
|
import com.aliyun.sts20150401.Client;
|
|
import com.fdkankan.cloud.acl.bean.StsBean;
|
|
import com.fdkankan.cloud.acl.bean.StsBean;
|
|
import com.fdkankan.cloud.acl.config.AliyunConfig;
|
|
import com.fdkankan.cloud.acl.config.AliyunConfig;
|
|
@@ -61,6 +62,7 @@ public class AliyunStsHandler implements StsHandler {
|
|
if(Objects.isNull(resp)){
|
|
if(Objects.isNull(resp)){
|
|
throw new BusinessException(ErrorCode.SYSTEM_BUSY.code(), "The system is busy, please try again later");
|
|
throw new BusinessException(ErrorCode.SYSTEM_BUSY.code(), "The system is busy, please try again later");
|
|
}
|
|
}
|
|
|
|
+ log.info("请求云服务获取临时token响应为:{}", resp);
|
|
|
|
|
|
String accessKeyId = resp.getBody().getCredentials().getAccessKeyId();
|
|
String accessKeyId = resp.getBody().getCredentials().getAccessKeyId();
|
|
String accessKeySecret = resp.getBody().getCredentials().getAccessKeySecret();
|
|
String accessKeySecret = resp.getBody().getCredentials().getAccessKeySecret();
|