TXDataTenantConnectionPool.TenantLookups Property
Lookups that resolve the tenant of a request from the identifiers registered in the catalog.
Remarks
Each TTenantLookup reads a value from the request (a user claim, a header, a query parameter or the host name) and matches it against a catalog identifier, such as user_id or domain. Lookups run after the tenant middleware: when the request already carries a tenant id and a lookup resolves a different tenant, the request is rejected with ETenantMismatch. A lookup whose value is absent from the request, or is not registered in the catalog, contributes nothing. Results are cached by the routing cache of the catalog component.
Lookups are skipped when an ambient TTenantScope is active.
Syntax
Unit: XData.Comp.TenantConnectionPool
property TXDataTenantConnectionPool.TenantLookups: TTenantLookups