From 07306bb9cd0060f91033fd7f1cf86924e872b03d Mon Sep 17 00:00:00 2001 From: congyi <15605187270@163.com> Date: Fri, 28 Jun 2024 11:34:38 +0800 Subject: [PATCH] minor --- src/aliyun/credential.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aliyun/credential.rs b/src/aliyun/credential.rs index baf55c4..8f8c1cf 100644 --- a/src/aliyun/credential.rs +++ b/src/aliyun/credential.rs @@ -140,7 +140,7 @@ impl Loader { // Construct request to Aliyun STS Service. let url = match &self.config.sts_endpoint{ - Some(definde_sts_endpoint) => format!("{}/?Action=AssumeRoleWithOIDC&OIDCProviderArn={}&RoleArn={}&RoleSessionName={}&Format=JSON&Version=2015-04-01&Timestamp={}&OIDCToken={}", definde_sts_endpoint,provider_arn, role_arn, role_session_name, format_rfc3339(now()), token), + Some(definde_sts_endpoint) => format!("https://{}/?Action=AssumeRoleWithOIDC&OIDCProviderArn={}&RoleArn={}&RoleSessionName={}&Format=JSON&Version=2015-04-01&Timestamp={}&OIDCToken={}", definde_sts_endpoint, provider_arn, role_arn, role_session_name, format_rfc3339(now()), token), None => format!("https://sts.aliyuncs.com/?Action=AssumeRoleWithOIDC&OIDCProviderArn={}&RoleArn={}&RoleSessionName={}&Format=JSON&Version=2015-04-01&Timestamp={}&OIDCToken={}", provider_arn, role_arn, role_session_name, format_rfc3339(now()), token), }; let req = self.client.get(&url).header(