-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat!: Modularize identity and auth #1544
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments to help reviewers.
@@ -17,16 +17,22 @@ import PackageDescription | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added AWSSDKCommon
module that has FileBasedConfiguration
. FileBasedConfiguration
was previously located under AWSClientRuntime
, but was moved because identity resolvers in AWSSDKIdentity
require it AND region providers in AWSClientRuntime
require it. After all modularization tasks are done, we'll decide what to do with AWSSDKCommon
& stragglers in AWSClientRuntime
.
@@ -9,6 +9,7 @@ import Foundation | |||
import XCTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New import statements were added following new organization. No additional comments will be written for this type of change.
@@ -1,32 +0,0 @@ | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was moved to smithy-swift.
@@ -5,34 +5,53 @@ | |||
// SPDX-License-Identifier: Apache-2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some granular imports for easily seeing what's coming from what
@@ -1,28 +0,0 @@ | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This, along with next 3 files, are moved to smithy-swift.
@@ -1,19 +0,0 @@ | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This, along with next 6 files, are moved to smithy-swift.
@@ -1,28 +0,0 @@ | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the next file are moved to smithy-swift.
@@ -1,11 +0,0 @@ | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is moved to smithy-swift.
@@ -1,24 +0,0 @@ | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and next test files are moved to smithy-swift.
@@ -89,7 +89,7 @@ extension ExampleClient { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codegen test updated to reflect new module.
1ad0692
to
0f63cd5
Compare
import class SmithyHTTPAPI.SdkHttpRequestBuilder | ||
import enum AwsCommonRuntimeKit.CommonRunTimeError | ||
import enum Smithy.ClientError | ||
import enum SmithyChecksumsAPI.ChecksumAlgorithm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge conflict was not resolved properly as this was added back as a dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch, removed the import statement.
$0.name == "AWSClientRuntimeTests" || | ||
$0.name == "AWSSDKHTTPAuthTests" || | ||
$0.name == "AWSSDKEventStreamsAuthTests" || | ||
$0.name == "AWSSDKIdentityTests" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch here
Companion PR: smithy-lang/smithy-swift#751
Issue #
#1382
#1383
Description of changes
Modularize identity & auth according to SRA.
New/existing dependencies impact assessment, if applicable
Conventional Commits
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.