Setup roles cache and use it for permission checks

This commit is contained in:
Benedikt Kulmann
2020-08-31 08:50:30 +02:00
parent cf89186286
commit 65bf34b12c
8 changed files with 116 additions and 80 deletions
+7
View File
@@ -92,6 +92,13 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
EnvVars: []string{"ACCOUNTS_ASSET_PATH"},
Destination: &cfg.Asset.Path,
},
&cli.StringFlag{
Name: "jwt-secret",
Value: "Pive-Fumkiu4",
Usage: "Used to create JWT to talk to reva, should equal reva's jwt-secret",
EnvVars: []string{"ACCOUNTS_JWT_SECRET"},
Destination: &cfg.TokenManager.JWTSecret,
},
}
}