Skip to content

Commit

Permalink
examples: add comment for credConf.setSTSEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Mar 6, 2024
1 parent 085631c commit 55e0412
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ static com.aliyun.credentials.Client newOidcCred() throws Exception {
credConf.oidcProviderArn = System.getenv("ALIBABA_CLOUD_OIDC_PROVIDER_ARN");
credConf.oidcTokenFilePath = System.getenv("ALIBABA_CLOUD_OIDC_TOKEN_FILE");
credConf.roleSessionName = "test-rrsa-oidc-token";
// https://next.api.aliyun.com/product/Sts
// credConf.setSTSEndpoint("sts-vpc.cn-hangzhou.aliyuncs.com")
return new com.aliyun.credentials.Client(credConf);
}
}

0 comments on commit 55e0412

Please sign in to comment.