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: remove dependency on amplifyconfiguration.json #58

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lawmicha
Copy link
Contributor

@lawmicha lawmicha commented Mar 13, 2024

Issue #, if available:

Description of changes:
This PR includes the changes that no longer depend on jsonConfiguration to get the auth configuration values. This PR needs to be updated with a version upgrade on the Amplify dependency to get the authConfiguration changes at the same time. It depends on this PR to be merged and released first: aws-amplify/amplify-swift#3566

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@lawmicha lawmicha requested review from a team as code owners March 13, 2024 19:11
self.cognito = CognitoConfiguration(
usernameAttributes: configuration.usernameAttributes,
signupAttributes: configuration.signUpAttributes,
passwordProtectionSettings: configuration.passwordProtectionSettings ?? .init(minLength: 0, characterPolicy: []),
Copy link
Member

Choose a reason for hiding this comment

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

❗ This is a change in existing behaviour. Currently, the Authenticator requires these password settings to be explicitly set, showing an error if that is not the case.
But now we will just default to not having password validations.

I don't feel strongly against this, but I think Android also requires these values so we should coordinate to make the change there as well. And also call it out in the release notes

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 callout, will follow up on this

Copy link
Member

@ruisebas ruisebas left a comment

Choose a reason for hiding this comment

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

Also: We need to update the Package.swift file to use the new Amplify version that contains this change, otherwise it will not compile.

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.

2 participants