Commit graph

2 commits

Author SHA1 Message Date
9cb1f8ed4b
feat: add an ID for every request
- Add a middleware to add an ID for every request for the purpose of
  cross referencing requests and errors.
- Add functions for handling client and server errors.
2024-10-17 18:25:43 +01:00
7d0336d3db
feat: add metadata endpoint
All checks were successful
CI / Tests (pull_request) Successful in 14s
CI / Style (pull_request) Successful in 9s
Add the metadata endpoint so that clients can get the server's
authorization and token endpoints.

Changes:

- Add a config object to allow administrators to configure the binding
  address, binding port and domain name.
- Add a target in the magefiles and a step in the CI workflow to run
  go vet.
- Add the Dockerfile.
- Replace the --address flag with the --config flag.
- Add the metadata endpoint to the router to return a JSON document
  containing the URLs to the metadata and token endpoints.
2024-10-15 18:22:55 +01:00