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 UserAttributeUpdateSettings to Amplify Cognito UserPool #10561

Closed
1 of 2 tasks
akshbhu opened this issue Jun 10, 2022 · 1 comment
Closed
1 of 2 tasks

Add UserAttributeUpdateSettings to Amplify Cognito UserPool #10561

akshbhu opened this issue Jun 10, 2022 · 1 comment
Assignees
Labels
auth Issues tied to the auth category of the CLI coordination-required feature-request Request a new feature p3

Comments

@akshbhu
Copy link
Contributor

akshbhu commented Jun 10, 2022

Is this feature request related to a new or existing Amplify category?

auth

Is this related to another service?

Cognito

Describe the feature you'd like to request

Stems from the GH issue : aws-amplify/amplify-js#987

Amplify Cognito pools are set up so that users can log in with their email. We also utilize attribute verification so that once a user signs up, they will need to verify their email address. Where we get stuck is when a user needs to update their email address. We call updateAttributes and pass their email, which will then send the user a verification email with the confirmation code. There are however states where the user is unauthenticated and needs to verify email with the confirmation code. If they are in an unauthenticated state, they need to authenticate. However, cognito doesn't allow users to log back in with neither their old or new email address. Instead, they need to sign up for an account again. This is a huge issue for us since it leaves users in this limbo state.

Cognito released a attribute in userpool UserAttributeUpdateSettings to have users old emails backwards compatible till they verify the new emails login.

Describe the solution you'd like

Introduce a new attribute UserAttributeUpdateSettings in amplify generated Cognito userPools

Since amplify uses an old version of cdk , Amplify dependencies needs to be update for cdk to latest version which supports this attribute.

Describe alternatives you've considered

One alternative can be to add this attribute to userPool after generating CFN templates using template modifiers during push but this may not help in long term code quality.

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • ⚠️ This feature might incur a breaking change
@akshbhu
Copy link
Contributor Author

akshbhu commented Nov 1, 2022

closing in favour of #10773

@akshbhu akshbhu closed this as completed Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues tied to the auth category of the CLI coordination-required feature-request Request a new feature p3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants