Amazon API Gateway AWS Lambda authorizer for basic HTTP authentication

Amazon API Gateway → AWS Lambda → AWS Lambda

API Gateway REST API protected by a Lambda Authorizer supporting basic HTTP authentication.

The Lambda authorizer decodes the credentials provided in the Authorization header. If authorized a policy is returned giving permissions to invoke the downstream Lambda function. If the user is not found a policy is returned denying access to the downstream Lambda function.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/apigw-lambda-authorizer-basic-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

cdk destroy

Additional resources

Created by:

Thiago Pádua

Thiago Pádua

Senior Partner Solutions Architect, Serverless at Amazon Web Services (AWS)

Follow on LinkedIn