Serverless REST API With Authentication — Part 2 | AWS Cognito + API Gateway Python AWS Project

Published: 11 March 2026
on channel: Tech With Kobina
75
3

In Part 2 of this serverless series, we add AWS Cognito authentication to the REST API we built in Part 1. By the end of this video, your API will require a valid login token — unauthenticated requests are blocked automatically by API Gateway.

This is Part 2 of a 3-part series:
Part 1 — Lambda + API Gateway →    • Serverless REST API With Authentication — ...  
Part 2 — Cognito Authentication (this video)
Part 3 — DynamoDB + Full End-to-End Test

What you will build:
A complete user authentication system with sign up, email verification, login, and JWT token-based API protection — all connected to the API from Part 1.

What you will learn:
How to create and configure a Cognito User Pool
How to implement sign up, email confirmation, and login in Python Lambda
How to create a Cognito Authorizer in API Gateway
How to attach the authorizer to protect specific endpoints
How JWT tokens work and how API Gateway validates them
How to read verified user identity from token claims inside Lambda

AWS Services used: Cognito, Lambda, API Gateway, IAM, CloudWatch
Language: Python 3.14

Watch Part 1 first:    • Serverless REST API With Authentication — ...  
Part 3 adds DynamoDB for real persistent data storage: [Link when live]

Full Tutorial & Code: https://d3qqq77n3yfi4v.cloudfront.net...

If this helped you, like and subscribe — new AWS tutorials every week.


On this page of the site you can watch the video online Serverless REST API With Authentication — Part 2 | AWS Cognito + API Gateway Python AWS Project with a duration of hours minute second in good quality, which was uploaded by the user Tech With Kobina 11 March 2026, share the link with friends and acquaintances, this video has already been watched 75 times on youtube and it was liked by 3 viewers. Enjoy your viewing!