Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 1.1 KB

README.md

File metadata and controls

28 lines (16 loc) · 1.1 KB

Amazon Cognito Impersonation

The project represents a sample project to demonstrate the impersonation and behalf of a user authorization to access its resources.

Deploying solution

Use the following commands to synthesize, Deploy and destroy the project.

  • npm run cdk:app synth emits the synthesized CloudFormation template
  • npm run cdk:app deploy deploy this stack to your default AWS account/region
  • npm run cdk:app synth destroy the solution

The App diagram

App Diagram

##Postam Collection and Environment

Import the Postman collection and Environment in your local Postman application.

Follow the following steps for testing

  • Run SignUp request to create a user providing your email
  • Find the provided password in your email inbox and use it in SignIn request body
  • Run the Impersonation request, this will generate an impersonation token
  • Run the downstream request to test the Authorization, and downstream tenant validation