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

Information Security Engineers

@ D. E. Shaw Research | New York City

Technology Security Analyst

@ Halton Region | Oakville, Ontario, Canada

Senior Cyber Security Analyst

@ Valley Water | San Jose, CA

Security Operations Manager-West Coast

@ The Walt Disney Company | USA - CA - 2500 Broadway Street

Vulnerability Analyst - Remote (WFH)

@ Cognitive Medical Systems | Phoenix, AZ, US | Oak Ridge, TN, US | Austin, TX, US | Oregon, US | Austin, TX, US

Senior Mainframe Security Administrator

@ Danske Bank | Copenhagen V, Denmark