<aside>
💻 Building Serverless .NET APIs using AWS Lambda, Amazon API Gateway, and Amazon Cognito
</aside>
Steps
- Review the architecture here
- Understand what we are going to build in this video.
- Refer aspnet-core-apis/AuthenticationExample and start building.
- Create an ASP.NET Core API
- Configure API to validate Cognito user-pool tokens
- Understand the need for security at the application level
- To get user info
- To validate audience
- Create Lambda function & deploy API
- Create a Cognito Authorizer
- Create an API Gateway route and connect it with the Lambda
- Obtain Cognito token from ThunderClient and inspect it at
jwt.io
- Test the API from ThunderClient.
- Experiment, remove the Authorizer, and see the behavior.