Skip to content

Commit a39781d

Browse files
authored
refactor(rt)!: split auth and signing packages; expose a method to sign requests (#318)
1 parent 19430cb commit a39781d

File tree

29 files changed

+321
-84
lines changed

29 files changed

+321
-84
lines changed

aws-runtime/auth/common/src/aws/sdk/kotlin/runtime/auth/AuthConfig.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
77

8+
import aws.sdk.kotlin.runtime.auth.credentials.CredentialsProvider
9+
810
/**
911
* A common interface that all AWS service clients implement as part of their configuration state.
1012
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package aws.sdk.kotlin.runtime.auth
6+
package aws.sdk.kotlin.runtime.auth.credentials
77

88
import aws.sdk.kotlin.crt.auth.credentials.build
99
import kotlin.time.Duration

aws-runtime/auth/common/src/aws/sdk/kotlin/runtime/auth/Credentials.kt renamed to aws-runtime/auth/common/src/aws/sdk/kotlin/runtime/auth/credentials/Credentials.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package aws.sdk.kotlin.runtime.auth
6+
package aws.sdk.kotlin.runtime.auth.credentials
77

88
/**
99
* Represents a set of AWS credentials

aws-runtime/auth/common/src/aws/sdk/kotlin/runtime/auth/CredentialsProvider.kt renamed to aws-runtime/auth/common/src/aws/sdk/kotlin/runtime/auth/credentials/CredentialsProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package aws.sdk.kotlin.runtime.auth
6+
package aws.sdk.kotlin.runtime.auth.credentials
77

88
/**
99
* Represents a producer/source of AWS credentials

aws-runtime/auth/common/src/aws/sdk/kotlin/runtime/auth/CrtBasedCredentialsProvider.kt renamed to aws-runtime/auth/common/src/aws/sdk/kotlin/runtime/auth/credentials/CrtBasedCredentialsProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package aws.sdk.kotlin.runtime.auth
6+
package aws.sdk.kotlin.runtime.auth.credentials
77

88
import aws.sdk.kotlin.crt.auth.credentials.CredentialsProvider as CredentialsProviderCrt
99

aws-runtime/auth/common/src/aws/sdk/kotlin/runtime/auth/CrtCredentialUtils.kt renamed to aws-runtime/auth/common/src/aws/sdk/kotlin/runtime/auth/credentials/CrtCredentialUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package aws.sdk.kotlin.runtime.auth
6+
package aws.sdk.kotlin.runtime.auth.credentials
77

88
import aws.sdk.kotlin.crt.auth.credentials.Credentials as CredentialsCrt
99
import aws.sdk.kotlin.crt.auth.credentials.CredentialsProvider as CredentialsProviderCrt

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package aws.sdk.kotlin.runtime.auth
6+
package aws.sdk.kotlin.runtime.auth.credentials
77

88
import aws.sdk.kotlin.crt.auth.credentials.build
99
import aws.sdk.kotlin.runtime.crt.SdkDefaultIO

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package aws.sdk.kotlin.runtime.auth
6+
package aws.sdk.kotlin.runtime.auth.credentials
77

88
import aws.sdk.kotlin.runtime.AwsSdkSetting
99
import aws.sdk.kotlin.runtime.ConfigurationException

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package aws.sdk.kotlin.runtime.auth
6+
package aws.sdk.kotlin.runtime.auth.credentials
77

88
import aws.sdk.kotlin.crt.auth.credentials.build
99
import aws.sdk.kotlin.runtime.crt.SdkDefaultIO

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package aws.sdk.kotlin.runtime.auth
6+
package aws.sdk.kotlin.runtime.auth.credentials
77

88
/**
99
* A credentials provider for a fixed set of credentials

0 commit comments

Comments
 (0)