Back to Browse

How To Secure AWS WebSocket API Gateway Using Cognito User Pool And Lambda Authorizer

389 views
Nov 2, 2025
11:42

How To Secure AWS WebSocket API Gateway Using Cognito User Pool And Lambda Authorizer This video covers: Connecting WebSocket API Gateway with Cognito User Pools Writing a custom Lambda Authorizer Validating JWT tokens Timestamps:- 00:00 - Intro & Architecture 00:15 - Create WebSocket API Gateway 01:47 - Create Lambda Function for Auth 02:00 - Configure Lambda Authorizer in API Gateway 04:02 - Cognito User Pool Setup 05:37 - Analyzing the Auth Code (Node.js) 09:06 - Generating Tokens with Cognito 10:50 - Final Test: Secure Connection vs. Unauthorized GitHub code for webscokets API Gateway Authorizer lambda function:- https://github.com/TrickSumo/CognitoCourse/blob/main/WebSocketAPIGatewayAuthorizer/index.mjs AWS Cognito Course:- https://www.youtube.com/watch?v=AmjPN3dWt1E&list=PLqbNDdqyX9E3xo2QWGa19O2wWPVfOHbuS&index=7 #aws #cognito #apigateway

Download

0 formats

No download links available.