Skip to content

Commit 7bc65bf

Browse files
authored
refactor!: abstract AwsSigner to support multiple backing implementations (#578)
1 parent 383d795 commit 7bc65bf

File tree

887 files changed

+215
-5969
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

887 files changed

+215
-5969
lines changed

aws-runtime/aws-config/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ kotlin {
2020
commonMain {
2121
dependencies {
2222
api(project(":aws-runtime:aws-core"))
23-
api(project(":aws-runtime:aws-types"))
2423
implementation("aws.smithy.kotlin:logging:$smithyKotlinVersion")
2524
implementation("aws.smithy.kotlin:http:$smithyKotlinVersion")
2625
implementation("aws.smithy.kotlin:utils:$smithyKotlinVersion")
@@ -36,7 +35,10 @@ kotlin {
3635
implementation("aws.smithy.kotlin:serde-xml:$smithyKotlinVersion")
3736
implementation(project(":aws-runtime:protocols:aws-xml-protocols"))
3837
implementation(project(":aws-runtime:aws-endpoint"))
39-
implementation(project(":aws-runtime:aws-signing"))
38+
implementation("aws.smithy.kotlin:aws-signing-common:$smithyKotlinVersion")
39+
40+
// TODO -- replace this once CRT is no longer the default signer
41+
implementation("aws.smithy.kotlin:aws-signing-crt:$smithyKotlinVersion")
4042

4143
// additional dependencies required by generated sso provider
4244
implementation(project(":aws-runtime:protocols:aws-json-protocols"))

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/CachedCredentialsProvider.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ package aws.sdk.kotlin.runtime.auth.credentials
77

88
import aws.sdk.kotlin.runtime.config.CachedValue
99
import aws.sdk.kotlin.runtime.config.ExpiringValue
10+
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
11+
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
1012
import aws.smithy.kotlin.runtime.io.Closeable
1113
import aws.smithy.kotlin.runtime.logging.Logger
1214
import aws.smithy.kotlin.runtime.time.Clock

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/CredentialsProviderChain.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
package aws.sdk.kotlin.runtime.auth.credentials
77

8+
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
9+
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
810
import aws.smithy.kotlin.runtime.io.Closeable
911
import aws.smithy.kotlin.runtime.logging.Logger
1012

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/DefaultChainCredentialsProvider.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ package aws.sdk.kotlin.runtime.auth.credentials
77

88
import aws.sdk.kotlin.runtime.config.AwsSdkSetting
99
import aws.sdk.kotlin.runtime.config.imds.ImdsClient
10+
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
11+
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
1012
import aws.smithy.kotlin.runtime.http.engine.DefaultHttpEngine
1113
import aws.smithy.kotlin.runtime.http.engine.HttpClientEngine
1214
import aws.smithy.kotlin.runtime.io.Closeable

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/EcsCredentialsProvider.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ import aws.sdk.kotlin.runtime.config.AwsSdkSetting
99
import aws.sdk.kotlin.runtime.config.AwsSdkSetting.AwsContainerCredentialsRelativeUri
1010
import aws.sdk.kotlin.runtime.config.resolve
1111
import aws.smithy.kotlin.runtime.ServiceException
12+
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
13+
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
1214
import aws.smithy.kotlin.runtime.client.ExecutionContext
1315
import aws.smithy.kotlin.runtime.http.*
16+
import aws.smithy.kotlin.runtime.http.endpoints.Endpoint
1417
import aws.smithy.kotlin.runtime.http.engine.DefaultHttpEngine
1518
import aws.smithy.kotlin.runtime.http.engine.HttpClientEngine
1619
import aws.smithy.kotlin.runtime.http.middleware.ResolveEndpoint

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/EnvironmentCredentialsProvider.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
package aws.sdk.kotlin.runtime.auth.credentials
77

88
import aws.sdk.kotlin.runtime.config.AwsSdkSetting
9+
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
10+
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
911
import aws.smithy.kotlin.runtime.util.Platform
1012

1113
private const val PROVIDER_NAME = "Environment"

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/ImdsCredentialsProvider.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import aws.sdk.kotlin.runtime.config.imds.EC2MetadataError
1010
import aws.sdk.kotlin.runtime.config.imds.ImdsClient
1111
import aws.sdk.kotlin.runtime.config.imds.InstanceMetadataProvider
1212
import aws.sdk.kotlin.runtime.config.resolve
13+
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
14+
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
1315
import aws.smithy.kotlin.runtime.http.HttpStatusCode
1416
import aws.smithy.kotlin.runtime.io.Closeable
1517
import aws.smithy.kotlin.runtime.logging.Logger

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/ProfileCredentialsProvider.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import aws.sdk.kotlin.runtime.config.imds.ImdsClient
1313
import aws.sdk.kotlin.runtime.config.profile.loadAwsProfiles
1414
import aws.sdk.kotlin.runtime.config.profile.resolveConfigSource
1515
import aws.sdk.kotlin.runtime.region.resolveRegion
16+
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
17+
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
1618
import aws.smithy.kotlin.runtime.http.engine.HttpClientEngine
1719
import aws.smithy.kotlin.runtime.io.Closeable
1820
import aws.smithy.kotlin.runtime.logging.Logger

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/SsoCredentialsProvider.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ package aws.sdk.kotlin.runtime.auth.credentials
88
import aws.sdk.kotlin.runtime.ConfigurationException
99
import aws.sdk.kotlin.runtime.auth.credentials.internal.sso.SsoClient
1010
import aws.sdk.kotlin.runtime.config.profile.normalizePath
11+
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
12+
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
1113
import aws.smithy.kotlin.runtime.http.engine.HttpClientEngine
1214
import aws.smithy.kotlin.runtime.serde.json.*
1315
import aws.smithy.kotlin.runtime.time.Clock

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/StaticCredentialsProvider.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
package aws.sdk.kotlin.runtime.auth.credentials
77

8+
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
9+
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
10+
811
/**
912
* A credentials provider for a fixed set of credentials
1013
*

0 commit comments

Comments
 (0)