From 55e0412b34c3ace91358c263bf32f12b262e8415 Mon Sep 17 00:00:00 2001 From: mozillazg Date: Wed, 6 Mar 2024 21:00:31 +0800 Subject: [PATCH] examples: add comment for credConf.setSTSEndpoint --- .../rrsa/oss-java-sdk/src/main/java/com/alibabacloud/Demo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/rrsa/oss-java-sdk/src/main/java/com/alibabacloud/Demo.java b/examples/rrsa/oss-java-sdk/src/main/java/com/alibabacloud/Demo.java index ec7cbfde..3f5f6f2c 100644 --- a/examples/rrsa/oss-java-sdk/src/main/java/com/alibabacloud/Demo.java +++ b/examples/rrsa/oss-java-sdk/src/main/java/com/alibabacloud/Demo.java @@ -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); } }