AWS Lambda Auth0 Authorizer for API Gateway
Uses Auth0 for verification. This custom authorizer simply validates the JWT token passed via the Authorization: Bearer xxxxxxxxxxxxxxxx
API request header.
The decoded JWT claims
object is passed to the context
object of the response. API Gateway then forwards the claims/context to the Lambda function handler.
For more information about Custom Authorizers, see the AWS Docs.
Install Gradle
brew install gradle
Install NPM and the Serverless CLI tools
brew install node
npm install serverless -g
See serverless.yml
AUTH0_CLIENT_SECRET
To build the project
gradle clean build
To deploy the function to AWS Lambda
serverless deploy