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

feat!: Modularize identity and auth #1544

Merged
merged 22 commits into from
Jun 12, 2024
Merged

Conversation

sichanyoo
Copy link
Contributor

@sichanyoo sichanyoo commented Jun 5, 2024

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.

Copy link
Contributor Author

@sichanyoo sichanyoo left a 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

Copy link
Contributor Author

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
Copy link
Contributor Author

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 @@
//
Copy link
Contributor Author

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
Copy link
Contributor Author

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 @@
//
Copy link
Contributor Author

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 @@
//
Copy link
Contributor Author

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 @@
//
Copy link
Contributor Author

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 @@
//
Copy link
Contributor Author

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 @@
//
Copy link
Contributor Author

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 {

Copy link
Contributor Author

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.

@sichanyoo sichanyoo force-pushed the feat/modularize-identity-and-auth branch 2 times, most recently from 1ad0692 to 0f63cd5 Compare June 7, 2024 22:52
import class SmithyHTTPAPI.SdkHttpRequestBuilder
import enum AwsCommonRuntimeKit.CommonRunTimeError
import enum Smithy.ClientError
import enum SmithyChecksumsAPI.ChecksumAlgorithm
Copy link
Contributor

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

Copy link
Contributor Author

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch here

@sichanyoo sichanyoo merged commit c73febe into main Jun 12, 2024
29 checks passed
@sichanyoo sichanyoo deleted the feat/modularize-identity-and-auth branch June 12, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants