Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
wcy-fdu committed Jun 28, 2024
1 parent 429bf0a commit 07306bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aliyun/credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 07306bb

Please sign in to comment.