lambda-jwt-authorizer

command module
v0.0.0-...-6be4a5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

AWS Lambda JWT Authorizer

Lambda function written in Go for validating a JWT token signed with a KMS key. It uses the matelang/jwt-go-aws-kms library that provides an AWS KMS(Key Management Service) adapter to be used with the popular GoLang JWT library golang-jwt/jwt-go.

This Lambda can be used with AWS API Gateway as a Lambda authorizer for HTTP APIs. The Lambda function needs an environment variable KMS_JWT_KEY_ID for the KMS key ID used to sign the JWT token.

Build

To build the executable:

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build

CGO_ENABLED=0 is set for creating a stable binary package for standard C library (libc)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL