Skip to content

Commit

Permalink
feat: down grade credential
Browse files Browse the repository at this point in the history
  • Loading branch information
nidbCN committed Dec 10, 2024
1 parent ea0ed8c commit 0f76312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AliCdnSSLWorker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ItemGroup>
<PackageReference Include="AlibabaCloud.SDK.Cdn20180510" Version="3.2.0" />
<PackageReference Include="Aliyun.Credentials" Version="1.4.3" />
<PackageReference Include="Aliyun.Credentials" Version="1.4.2" />
<PackageReference Include="Macross.Json.Extensions" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.0" />
Expand Down
4 changes: 2 additions & 2 deletions Services/AliCdnService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ public AliCdnService(ILogger<AliCdnService> logger, IOptions<AliCdnConfig> 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()
{
Expand Down

0 comments on commit 0f76312

Please sign in to comment.