diff --git a/extensions/gateway/pkg/command/command.go b/extensions/gateway/pkg/command/command.go index 3c8a15941f..af5bb5e836 100644 --- a/extensions/gateway/pkg/command/command.go +++ b/extensions/gateway/pkg/command/command.go @@ -10,6 +10,7 @@ import ( "strings" "github.com/cs3org/reva/v2/cmd/revad/runtime" + "github.com/cs3org/reva/v2/pkg/utils" "github.com/gofrs/uuid" "github.com/mitchellh/mapstructure" "github.com/oklog/run" @@ -223,6 +224,7 @@ func spacesProviders(cfg *config.Config, logger log.Logger) map[string]map[strin // generate rules based on default config return map[string]map[string]interface{}{ cfg.StorageUsersEndpoint: { + "providerid": "1284d238-aa92-42ce-bdc4-0b0000009157", "spaces": map[string]interface{}{ "personal": map[string]interface{}{ "mount_point": "/users", @@ -235,6 +237,7 @@ func spacesProviders(cfg *config.Config, logger log.Logger) map[string]map[strin }, }, cfg.StorageSharesEndpoint: { + "providerid": utils.ShareStorageProviderID, "spaces": map[string]interface{}{ "virtual": map[string]interface{}{ // The root of the share jail is mounted here @@ -254,6 +257,7 @@ func spacesProviders(cfg *config.Config, logger log.Logger) map[string]map[strin }, // public link storage returns the mount id of the actual storage cfg.StoragePublicLinkEndpoint: { + "providerid": utils.PublicStorageProviderID, "spaces": map[string]interface{}{ "grant": map[string]interface{}{ "mount_point": ".",