Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mismatch access key id #426

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
* under the License.
*/

using System;

namespace Aliyun.Acs.Core.Auth
{
[Obsolete("This class is obsolete.")]
public class CredentialsBackupCompatibilityAdaptor : Credential
{
private readonly AlibabaCloudCredentialsProvider provider;
Expand Down
6 changes: 3 additions & 3 deletions aliyun-net-sdk-core/DefaultAcsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@ public DefaultAcsClient(IClientProfile profile) : this()
{
clientProfile = profile;
credentialsProvider = new StaticCredentialsProvider(profile);
clientProfile.SetCredentialsProvider(credentialsProvider);
// clientProfile.SetCredentialsProvider(credentialsProvider);
}

public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentials credentials) : this()
{
clientProfile = profile;
credentialsProvider = new StaticCredentialsProvider(credentials);
clientProfile.SetCredentialsProvider(credentialsProvider);
// clientProfile.SetCredentialsProvider(credentialsProvider);
}

public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentialsProvider credentialsProvider) : this()
{
clientProfile = profile;
this.credentialsProvider = credentialsProvider;
clientProfile.SetCredentialsProvider(this.credentialsProvider);
// clientProfile.SetCredentialsProvider(this.credentialsProvider);
}

[Obsolete("readTimeout is deprecated as does not match Properties rule, please use readTimeout instead.")]
Expand Down
Loading