rich
rich

Reputation: 19404

How to test calls to an Amazon API gateway using Cognito Auth

I've got some lambdas behind Amazon's API Gateway, which is configured to restrict access to Cognito authenticated users. All works fine for users coming via a UI.

I'd like to test those APIs separately to the UI, using Postman ideally or failing that perhaps curl.

How can I send a Cognito-authenticated request via Postman, curl or similar, to the API Gateway?

Upvotes: 2

Views: 2612

Answers (2)

Shaunti Fondrisi
Shaunti Fondrisi

Reputation: 1091

Try using Insomnia as a Rest client: https://insomnia.rest/

I see it has a tab for AWS auth settings.

enter image description here

Upvotes: 1

Asad Mehmood
Asad Mehmood

Reputation: 514

just have a look at the following post, i think it'd be helpful for you.

How setup header in Postman for Api Gateway authenticated with Cognito?

Upvotes: 0

Related Questions