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

Add example React client application for Cognito user pools #6212

Closed
wants to merge 0 commits into from

Conversation

AMZ-brandon
Copy link
Contributor

@AMZ-brandon AMZ-brandon commented Mar 6, 2024

I am adding some application code contributed by the Cognito service team to be referenced in a future documentation update.
Each does basic sign-up, confirmation, sign-in operations.

javascriptv3/example_code/cognito-identity-provider/scenarios/react-web-app: A web application for ReactJS
kotlin/services/cognito/src/main/Flutter_AWS_SDK: A mobile Android app in Flutter
swift/example_code/cognito-identity/IOS_AWS_SDK/MyIOSApp: A mobile iOS app in Swift


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added Javascript-v3 This issue relates to the AWS SDK for Javascript V3 Kotlin This issue relates to the AWS SDK for Kotlin Swift This issue relates to the AWS SDK for Swift labels Mar 6, 2024
@beqqrry-aws beqqrry-aws self-assigned this Mar 7, 2024

class RunnerTests: XCTestCase {

func testExample() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we be concerned that there are no tests here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes.

Copy link
Contributor

@shepazon shepazon left a comment

Choose a reason for hiding this comment

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

This PR adds a directory to the swift/example_code/cognito-identity directory named IOS_AWS_SDK. This is not a descriptive name, and is in all-caps unlike other directories in the Swift part of the repository. Please change the name of this directory.

Hm. This appears to be an example using the old iOS SDK, not the Swift SDK. I don't think it belongs where it's been put in the repository -- the /swift tree is for SDK for Swift examples. I can't get this example to build on my MacBook Pro with M2 Pro chip. I get a bunch of "No library for this platform" errors when trying to deal with the iOS SDK parts of the build.

Until these things are cleared up, I can't do much to review this.

@AMZ-brandon
Copy link
Contributor Author

Renamed directory. @bhatti is original author and wanted to know what library should be used and if you have any reference examples.
I'm not super familiar, but I built this app on an M2 EC2 instance & it worked.

@github-actions github-actions bot removed Kotlin This issue relates to the AWS SDK for Kotlin Swift This issue relates to the AWS SDK for Swift labels Mar 13, 2024
@AMZ-brandon AMZ-brandon changed the title Add example React/Swift/Flutter client applications for Cognito user pools Add example React client application for Cognito user pools Mar 13, 2024
@brmur brmur requested review from shepazon and removed request for scmacdon and shepazon March 13, 2024 18:04
@cpyle0819
Copy link
Contributor

@AMZ-brandon the linter and metadata validator is failing. Can you take a look and let me know if you need any help?

@shepazon
Copy link
Contributor

Now that this is just for JavaScript, I'm not the right person to review this.

@AMZ-brandon
Copy link
Contributor Author

Now that this is just for JavaScript, I'm not the right person to review this.

Working with @cpyle0819 on it. Thanks for the input so far!

@cpyle0819 cpyle0819 added Workflow A simple code example to show how certain tasks can be accomplished using several services and SDKs. Follow After Scouts, more languages are added to examples as Follows. labels Mar 19, 2024
@github-actions github-actions bot added C++ This issue relates to the AWS SDK for C++ Python This issue relates to the AWS SDK for Python (boto3) Rust This issue relates to the AWS SDK for Rust (Preview) Java-v2 This issue relates to the AWS SDK for Java V2 GitHub settings This affects GitHub settings Tools This issue relates to a custom tooling to streamline development tasks and removed C++ This issue relates to the AWS SDK for C++ labels Mar 19, 2024
@github-actions github-actions bot removed Python This issue relates to the AWS SDK for Python (boto3) Rust This issue relates to the AWS SDK for Rust (Preview) Java-v2 This issue relates to the AWS SDK for Java V2 GitHub settings This affects GitHub settings Tools This issue relates to a custom tooling to streamline development tasks labels Mar 19, 2024
@cpyle0819 cpyle0819 closed this Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Follow After Scouts, more languages are added to examples as Follows. Javascript-v3 This issue relates to the AWS SDK for Javascript V3 Workflow A simple code example to show how certain tasks can be accomplished using several services and SDKs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants