File tree Expand file tree Collapse file tree 4 files changed +14
-0
lines changed
aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "id" : " c8ccff8e-460a-4e91-8f81-d09180636dea" ,
3+ "type" : " feature" ,
4+ "description" : " Pass client-configured LogMode through to internal credentials providers" ,
5+ "issues" : [
6+ " https://github.com/awslabs/aws-sdk-kotlin/issues/1132"
7+ ]
8+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import aws.sdk.kotlin.runtime.auth.credentials.internal.sso.getRoleCredentials
1111import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
1212import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
1313import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProviderException
14+ import aws.smithy.kotlin.runtime.client.SdkClientOption
1415import aws.smithy.kotlin.runtime.collections.Attributes
1516import aws.smithy.kotlin.runtime.http.engine.HttpClientEngine
1617import aws.smithy.kotlin.runtime.serde.json.*
@@ -101,6 +102,7 @@ public class SsoCredentialsProvider public constructor(
101102 region = ssoRegion
102103 httpClient = this @SsoCredentialsProvider.httpClient
103104 telemetryProvider = telemetry
105+ logMode = attributes.getOrNull(SdkClientOption .LogMode )
104106 // FIXME - create an anonymous credential provider to explicitly avoid default chain creation (technically the transform should remove need for sigv4 cred provider since it's all anon auth)
105107 }
106108
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
1717import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
1818import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProviderException
1919import aws.smithy.kotlin.runtime.auth.awscredentials.DEFAULT_CREDENTIALS_REFRESH_SECONDS
20+ import aws.smithy.kotlin.runtime.client.SdkClientOption
2021import aws.smithy.kotlin.runtime.collections.Attributes
2122import aws.smithy.kotlin.runtime.config.resolve
2223import aws.smithy.kotlin.runtime.http.engine.HttpClientEngine
@@ -105,6 +106,7 @@ public class StsAssumeRoleCredentialsProvider(
105106 credentialsProvider = provider.bootstrapCredentialsProvider
106107 httpClient = provider.httpClient
107108 telemetryProvider = telemetry
109+ logMode = attributes.getOrNull(SdkClientOption .LogMode )
108110 }
109111
110112 val resp = try {
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
1515import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
1616import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProviderException
1717import aws.smithy.kotlin.runtime.auth.awscredentials.DEFAULT_CREDENTIALS_REFRESH_SECONDS
18+ import aws.smithy.kotlin.runtime.client.SdkClientOption
1819import aws.smithy.kotlin.runtime.collections.Attributes
1920import aws.smithy.kotlin.runtime.config.EnvironmentSetting
2021import aws.smithy.kotlin.runtime.config.resolve
@@ -120,6 +121,7 @@ public class StsWebIdentityCredentialsProvider(
120121 httpClient = provider.httpClient
121122 // NOTE: credentials provider not needed for this operation
122123 telemetryProvider = telemetry
124+ logMode = attributes.getOrNull(SdkClientOption .LogMode )
123125 }
124126
125127 val resp = try {
You can’t perform that action at this time.
0 commit comments