Skip to content

Secure api gateway points with both aws iam and cognito auth

Notifications You must be signed in to change notification settings

jitunayak/cognito-api-gateway

Repository files navigation

Generate AWS_IAM credentials from Cognito credentials

setup 🦄

yarn

install dependencies 🍔

yarn start

run serverless in offline mode 🥂

dashboard: https://app.serverless.com/jitunayak/apps/poc/cognito-api-gateway/dev/ap-south-1
endpoints:
  POST - http://localhost:3000/login
  POST - http://localhost:3000/secure
functions:
  open: cognito-api-gateway-dev-open
 curl --location --request POST 'http://localhost:3000/login' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "username": {username},
        "password": {password},
    }'

About

Secure api gateway points with both aws iam and cognito auth

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published