/lambda-auth0-authorizer

AWS Lambda Auth0 Authorizer for API Gateway

Primary LanguageGroovy

lambda-auth0-authorizer

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.

Local Development Prerequisites

Install Gradle

brew install gradle

Install NPM and the Serverless CLI tools

brew install node

npm install serverless -g


Required Environment Variables

See serverless.yml

  • AUTH0_CLIENT_SECRET

Build and Publish

To build the project

gradle clean build

To deploy the function to AWS Lambda

serverless deploy