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

Temporary password expires quickly #1063

Open
shankari opened this issue Mar 23, 2024 · 0 comments
Open

Temporary password expires quickly #1063

shankari opened this issue Mar 23, 2024 · 0 comments

Comments

@shankari
Copy link
Contributor

After e-mission/nrel-openpath-deploy-configs#45 was merged, we can how run a simple script to add and remove users to the authentication pool, and to have AWS cognito automatically send an email to them with a temporary password. The default TemporaryPasswordValidityDays is 7
https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_PasswordPolicyType.html

However, we have received reports from two separate admins that their temporary password did not work.
They reported that:

I keep getting an “invalid or expired code” error. I have tried signing in about a dozen times and still cannot.

One of the users might have tried after 7 days, but the second one tried within 2 days (Monday, March 18, 2024 6:11 PM -> Wednesday, March 20, 2024 at 7:10 AM) and it did not work. We should:

  • double-check if IT is overriding TemporaryPasswordValidityDays
  • on staging, create a new user and try logging in after different lengths of time
  • ask for better access to logs so that we can debug such errors instead of just band-aiding them by deleting and re-creating accounts.
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

No branches or pull requests

1 participant