Custom module to re-sign JWT tokens
This program contains an example of using a custom module for signing JWT
with a private key before sending any requests upstream. For a full example
of a custom module, see custom.
Run the Router
Before you can run the router, you need to copy the .env.example
to .env
and adjust the values.
go run ./cmd/custom-jwt/main.go
Build your own Router
go build -o router ./cmd/custom-jwt/main.go
Run tests
Tests for this module can be found within the integration tests.
All commands are run from the root of the router directory.
Credits
The module system is inspired by Caddy.