We appreciate feedback and contribution to this repo. Before you get started, please see Auth0's general contribution guidelines.
Before you submit a pull request, there are a couple requirements to satisfy.
This project uses golangci-lint to enforce coding standards. It can be ran locally using make lint, this will also fix any autofixable errors within the code.
Tests can be ran using make test. To run a specific test pass the FILTER var, for example make test FILTER="Test_invalidError".
This repo contains some examples of integrating the middleware with the Go builtin net/http and a custom middleware for Gin.
To run these examples:
cdinto the directory of the example- Install dependencies using
go mod vendor - Run the sample using
run main.go
Each folder also contains a README.md file that details any specifics on how to run the example.