since the metadata services uses the reva jwt token, accounts service should do too

This commit is contained in:
Willy Kloucek
2022-02-01 15:21:37 +01:00
parent 3cbd78f512
commit f0d072e94b
4 changed files with 9 additions and 3 deletions
-1
View File
@@ -56,7 +56,6 @@ type Disk struct {
// CS3 is the cs3 implementation of the storage.
type CS3 struct {
ProviderAddr string `ocisConfig:"provider_addr" env:"ACCOUNTS_STORAGE_CS3_PROVIDER_ADDR"`
JWTSecret string `ocisConfig:"jwt_secret" env:"ACCOUNTS_STORAGE_CS3_JWT_SECRET"`
}
// ServiceUser defines the user required for EOS.
-1
View File
@@ -46,7 +46,6 @@ func DefaultConfig() *Config {
},
CS3: CS3{
ProviderAddr: "localhost:9215",
JWTSecret: "Pive-Fumkiu4",
},
},
Index: Index{
+1 -1
View File
@@ -136,7 +136,7 @@ func configFromSvc(cfg *config.Config) (*idxcfg.Config, error) {
Backend: cfg.Repo.Backend,
CS3: idxcfg.CS3{
ProviderAddr: cfg.Repo.CS3.ProviderAddr,
JWTSecret: cfg.Repo.CS3.JWTSecret,
JWTSecret: cfg.TokenManager.JWTSecret,
},
}
default: