Member-only story

How to Authenticate your API Gateway with Cognito

Thiwanka Wickramage
10 min readDec 4, 2023

--

How to Authenticate your API Gateway with Cognito

In this article we going to talk about how to secure you AWS API Gateway with AWS Cognito User Pool. I will guide you step by step to authenticate your API with AWS Cognito using simple example.

I have talked about How to authenticate your API with Lambda Authrorizer. I suggest you to read that article and get an idea about how this authentication works.

Before we jump into the configuration let’s have a look in what is Cognito Pool?

What is Amazon Cognito

Amazon Cognito is a user authentication and management service that makes it easy to add sign-up, sign-in, and access control to mobile and web applications. With Amazon Cognito, you can easily create and manage user pools that scale to hundreds of millions of users.

You can use this service for free up to 50,000 active users per month under their AWS Free Tier. There are two types of AWS Cognito.

User Pools

A user pool is a user directory in Amazon Cognito that can scale to hundreds of millions of users. User pools enable sign-up and sign-in functionality for web and

--

--

No responses yet