From 0f763127d18598225566d4904c82eb0ed18aaf5e Mon Sep 17 00:00:00 2001 From: Gaein_nidb Date: Tue, 10 Dec 2024 16:09:56 +0800 Subject: [PATCH] feat: down grade credential --- AliCdnSSLWorker.csproj | 2 +- Services/AliCdnService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AliCdnSSLWorker.csproj b/AliCdnSSLWorker.csproj index e393218..a37bf2c 100644 --- a/AliCdnSSLWorker.csproj +++ b/AliCdnSSLWorker.csproj @@ -13,7 +13,7 @@ - + diff --git a/Services/AliCdnService.cs b/Services/AliCdnService.cs index ee4b568..42549c7 100644 --- a/Services/AliCdnService.cs +++ b/Services/AliCdnService.cs @@ -22,12 +22,12 @@ public AliCdnService(ILogger logger, IOptions optio ArgumentNullException.ThrowIfNull(options); var credentialClient = new CredClient( - new StaticCredentialsProvider(new() + new() { AccessKeyId = options.Value.AccessKeyId, AccessKeySecret = options.Value.AccessKeySecret, Type = AuthConstant.AccessKey, - })); + }); _apiClient = new(new() {