Skip to content

Build a React User Management app use AWS Cognito, Amplify, API Gateway, Lambda, DynamoDB and more.

Notifications You must be signed in to change notification settings

huychau/aws-serverless-cognito-apigateway-amplify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Management Serverless

Build a React User Management app use AWS Cognito, Amplify, API Gateway, Lambda, DynamoDB and more.

Architecture

Requirements

  • AWS credentials
  • AWS CLI
  • Amplify CLI
  • Serverless CLI

Getting Started

Access serverless/ first

AWS - Config Credentials

serverless config credentials --provider provider --key key --secret secret

Login to Serverless

sls login

Deploy services

sls deploy

Remove services

sls remove

Notes

Cognito get user token

Make sure that Generate client secret is unchecked when create new Cognito app client

aws cognito-idp initiate-auth --auth-flow USER_PASSWORD_AUTH --client-id client_id --auth-parameters USERNAME=testuser@domain.com,PASSWORD=password

If the ChallengeName is NEW_PASSWORD_REQUIRED, we need to change the Temporary password:

aws cognito-idp admin-respond-to-auth-challenge --user-pool-id user_pool_id --client-id client_id --challenge-name NEW_PASSWORD_REQUIRED --challenge-responses NEW_PASSWORD=new_password,USERNAME=testuser@domain.com --session session_in_previous_response

About

Build a React User Management app use AWS Cognito, Amplify, API Gateway, Lambda, DynamoDB and more.

Topics

Resources

Stars

Watchers

Forks