Table of Contents

Class TenantErrors

Namespace
Compendium.Multitenancy
Assembly
Compendium.Multitenancy.dll

Standard tenant-related errors.

public static class TenantErrors
Inheritance
TenantErrors
Inherited Members

Fields

Prefix

Error code prefix for tenant errors.

public const string Prefix = "Tenant"

Field Value

string

Methods

InsufficientSources(int, int)

Insufficient tenant sources provided.

public static Error InsufficientSources(int required, int found)

Parameters

required int
found int

Returns

Error

NoTenantIdentifier()

No tenant identifier was found in any source.

public static Error NoTenantIdentifier()

Returns

Error

TenantAccessDenied(string)

Tenant access is not authorized.

public static Error TenantAccessDenied(string tenantId)

Parameters

tenantId string

Returns

Error

TenantMismatch(string?, string?, string?)

Tenant identifiers from different sources don't match.

public static Error TenantMismatch(string? header, string? subdomain, string? jwt)

Parameters

header string
subdomain string
jwt string

Returns

Error

TenantNotFound(string)

Tenant was not found.

public static Error TenantNotFound(string tenantId)

Parameters

tenantId string

Returns

Error