Add tracing

This commit is contained in:
2023-10-23 14:23:19 +02:00
parent 1510a746ec
commit 746fb73d2f
7 changed files with 152 additions and 14 deletions

View File

@@ -75,6 +75,7 @@ func VerifyToken(authURL string, permittedRoles []string) func(http.Handler) htt
_ = encoder.Encode(&errResp)
return
}
// TODO: Check that it is in permitted
// Add claims to request context
if claims, ok := token.Claims.(*auth.MicrofilmClaims); ok && token.Valid {