https://github.com/bytekast/lambda-auth0-authorizer
AWS Lambda Auth0 Authorizer for API Gateway
https://github.com/bytekast/lambda-auth0-authorizer
Last synced: about 1 year ago
JSON representation
AWS Lambda Auth0 Authorizer for API Gateway
- Host: GitHub
- URL: https://github.com/bytekast/lambda-auth0-authorizer
- Owner: bytekast
- Created: 2017-04-19T06:09:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T19:30:40.000Z (about 9 years ago)
- Last Synced: 2025-02-17T23:12:04.193Z (over 1 year ago)
- Language: Groovy
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lambda-auth0-authorizer
AWS Lambda Auth0 Authorizer for API Gateway
Uses [Auth0](https://auth0.com/) 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](http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-input), see the [AWS Docs](http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-input).
### 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](serverless.yml#L9)
- `AUTH0_CLIENT_SECRET`
---
### Build and Publish
> To build the project
`gradle clean build`
> To deploy the function to AWS Lambda
`serverless deploy`
---