Use JWT authentication for the API

This commit takes care of the API part of issue #6.
This commit is contained in:
Lou Knauer
2021-09-20 09:27:31 +02:00
parent 22de7da5e4
commit 27a5c0b561
6 changed files with 63 additions and 11 deletions

1
go.mod
View File

@@ -3,6 +3,7 @@ module github.com/ClusterCockpit/cc-metric-store
go 1.16
require (
github.com/golang-jwt/jwt/v4 v4.0.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/gorilla/mux v1.8.0
github.com/nats-io/nats-server/v2 v2.2.6 // indirect