mjendza / aws-sandbox

This is my AWS Serverless stack. Build with CDK, NodeJS Lambda, DynamoDB storage.
Apache License 2.0
6 stars 1 forks source link

protect api with cognito #8

Open mjendza opened 3 years ago

mjendza commented 3 years ago

we can base on the CDK sample https://github.com/aws-samples/aws-cdk-examples/blob/master/typescript/cognito-api-lambda/index.ts

Maybe use this kind of solution https://github.com/aws-samples/amazon-cognito-passwordless-email-auth

https://alexanderzeitler.com/articles/create-aws-cognito-userpool-with-oauth-flows-using-cdk/

https://github.com/aws-samples/aws-serverless-security-workshop

https://docs.aws.amazon.com/cdk/api/latest/docs/aws-cognito-readme.html