March 29, 2024, 8:54 a.m. | Aidan

DEV Community dev.to

Flow basic


Prepare:



Cognito create user pool

Create 3 lambda function: 2faDefine.js, 2faCreate.js, 2faVerify.js



Cognito user pool



Note: User pool ID & App client ID



1./ Tab User: create user


The newly created user has confirmation status is Force change password, now you need to run the script below to update confirmation status from Force change password to Confirmed.



aws cognito-idp admin-set-user-password --user-pool-id {user pool ID} --username {username} --password {password} --permanent 


2./ Tab Sign-up experience


Add custom attributes authChallenge, so …

amp app aws basic change change password client code cognito confirm email flow function javascript lambda password prepare run script sign tab

SOC 2 Manager, Audit and Certification

@ Deloitte | US and CA Multiple Locations

Senior InfoSec Manager - Risk and Compliance

@ Federal Reserve System | Remote - Virginia

Security Analyst

@ Fortra | Mexico

Incident Responder

@ Babcock | Chester, GB, CH1 6ER

Vulnerability, Access & Inclusion Lead

@ Monzo | Cardiff, London or Remote (UK)

Information Security Analyst

@ Unissant | MD, USA