unmarshal token to filter spaces for current user (#6596)

* unmarshal token to filter spaces for current user

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* Fix tests

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: André Duffeck <andre.duffeck@firondu.de>
This commit is contained in:
Jörn Friedrich Dreyer
2023-06-22 16:15:17 +02:00
committed by GitHub
co-authored by André Duffeck
parent abf94f1ccb
commit 2ea3b8c400
10 changed files with 79 additions and 20 deletions
@@ -33,6 +33,7 @@ func Server(opts ...Option) (grpc.Service, func(), error) {
handle, teardown, err := svc.NewHandler(
svc.Config(options.Config),
svc.Logger(options.Logger),
svc.JWTSecret(options.JWTSecret),
)
if err != nil {
options.Logger.Error().