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

adding email alias #12947

Closed
ErhardScampi opened this issue Jul 14, 2023 · 3 comments
Closed

adding email alias #12947

ErhardScampi opened this issue Jul 14, 2023 · 3 comments
Labels
auth Issues tied to the auth category of the CLI pending-response Issue is pending response from the issue author pending-triage Issue is pending triage question General question

Comments

@ErhardScampi
Copy link

Amplify CLI Version

12.1.1

Question

I have an amplify app grown up from version 5 up to now inclusive a painful migration to transformer v2.
Now the first user wants to change the email address. No problem there is a workflow to change the attribute email. But the user can't login with his new email address. He needs the old one which is still in the name. So I learned I need a login alias email. How can I configure it. When I fire amplify update auth and go thru all steps there is no alias question.
Is the perhaps a possibility to change the name also ?
In the name the old email is in Cognito (thru the console) in the email the new one.
How can I login with the new email address ?

@ErhardScampi ErhardScampi added pending-triage Issue is pending triage question General question labels Jul 14, 2023
@ykethan
Copy link
Contributor

ykethan commented Jul 18, 2023

Hey @ErhardScampi, thank you for reaching out. The Cognito sign-in attributes cannot be modified once the user pool has been created. Amplify CLI provides the capability of adding Alias attributes using the feature flag forceAliasAttributes in the amplify/cli.json, but would require us to recreate the Cognito user pool.

A workflow to change the attribute email currently exists, but the user can't login with his new email address.

Curious on what occurred here, could you provide us some on how the auth resource and workflow is currently configured?
Additionally, information on the behaviour the user observed on a login post updating the email address and if you observe the user being updated on the Cognito user pool?

@ykethan ykethan added pending-response Issue is pending response from the issue author auth Issues tied to the auth category of the CLI labels Jul 18, 2023
@josefaidt
Copy link
Contributor

Closing due to inactivity

@josefaidt josefaidt closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

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 pending-response Issue is pending response from the issue author pending-triage Issue is pending triage question General question
Projects
None yet
Development

No branches or pull requests

3 participants