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); } }