deps: Bump reva to latest main

for getting https://github.com/opencloud-eu/reva/pull/360
This commit is contained in:
Ralf Haferkamp
2025-10-06 11:21:57 +02:00
committed by Ralf Haferkamp
parent f096285769
commit 9ec532da93
18 changed files with 203 additions and 53 deletions
+11
View File
@@ -28,6 +28,7 @@ import (
"github.com/google/uuid"
"github.com/opencloud-eu/reva/v2/pkg/appctx"
"github.com/opencloud-eu/reva/v2/pkg/errtypes"
"github.com/opencloud-eu/reva/v2/pkg/sharedconf"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"go.opentelemetry.io/otel/attribute"
@@ -180,6 +181,16 @@ func (i *Identity) Setup() error {
return fmt.Errorf("invalid disable mechanism setting: %s", i.User.DisableMechanism)
}
if sharedconf.MultiTenantEnabled() {
if i.User.Schema.TenantID == "" {
return fmt.Errorf("Invalid configuration: a 'tenantId' user schema attribute must be defined for multi-tenant setups")
}
} else {
if i.User.Schema.TenantID != "" {
return fmt.Errorf("Invalid configuration: Superfluous 'tenantId' user schema attribute defined for single-tenant setups")
}
}
return nil
}