https://github.com/networknt/light-aws-lambda
Aws lambda extensions for cross-cutting concerns
https://github.com/networknt/light-aws-lambda
Last synced: 3 months ago
JSON representation
Aws lambda extensions for cross-cutting concerns
- Host: GitHub
- URL: https://github.com/networknt/light-aws-lambda
- Owner: networknt
- License: apache-2.0
- Created: 2020-12-08T17:55:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2026-02-10T19:38:58.000Z (6 months ago)
- Last Synced: 2026-02-10T22:50:37.061Z (6 months ago)
- Language: Java
- Size: 628 KB
- Stars: 3
- Watchers: 15
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# light-aws-lambda
Aws lambda authorizer, middleware handlers and extensions for cross-cutting concerns
### authorizer
The authorizer is a lambda function and it will be configured on the AWS API Gateway to be invoked as a custom authorizer.
### middleware handlers
Middleware handlers are called by the framework before the Lambda function handlers are called to do the following.
##### JWT scope verifier
The custome authorizer on the API Gateway will enrich the request context with client_id/cid, user_id/uid (authorization flow), primary scopes, secondary scopes. The authorizer doesn't have the knowledge of OpenAPI specification on the API Gateway so the scope verification will be done on this middleware handler based on the openapi.yml specification.
##### Schema Validatior
After the JWT scope verifier, the same openapi.yaml will be leveraged to validate the request with json-schema-validator.
### lambda extensions
##### Logger
This is a Lambda extersion that will collect the logs of the Lambda function and send to Splunk or Elasticsearch.
##### Metrics
This is a Lambda extension that will collect the metrics of the Lambda function and send to a time series database.