Secure your APIs with AWS Lambda authorizer functions
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
step1 Fix file names Sep 29, 2018
step2 Updates Nov 6, 2018
step3 Fix security vulnerability Nov 6, 2018
.gitignore Initial commit Sep 28, 2018
LICENSE Initial commit Sep 28, 2018
README.md Update README Sep 28, 2018
deploy.sh Update deploy.sh Sep 28, 2018
requirements.txt Update requirement.txt Nov 6, 2018

README.md

api-gateway-authorizer-lambda

Secure your APIs with AWS Lambda authorizer functions

Description

Experiments with AWS API Gateway containing scripts for verifying jwt tokens, λ authorizer function and basic λ function to return an api response. This project contains a boilerplate for setting up basic lambda authorizers and not implementing fully secure authorization for API Gateway.

This code is complementary to my medium post

Build

λ git clone https://github.com/Ch3ck/api-gateway-authorizer-lambda.git
λ cd api-gateway-authorizer-lambda
λ pip3 install awscli --upgrade --user
λ pip install -r requirements.txt
λ pip install . #move to proper directory and run each command

Setup your AWS credentials

λ cd step3
λ vim config.ini # add required credentials

Deploy

Copy deploy script to each directory and edit appropriately and run as follows

λ cp deploy.sh stepX # then edit
λ sh deploy.sh  #λ deployed!

The instructions for creating and/or updating the λ function on AWS is in the deploy.sh script. Feel free to comment out parts which are no longer necessary.

Contributing

If you encounter a bug problems, I'll like to hear about it. Also, pull requests are welcomed

Author