Table of Contents

Class TenantValidationMiddlewareOptions

Namespace
Compendium.Adapters.AspNetCore.Security
Assembly
Compendium.Adapters.AspNetCore.dll

Configuration options for tenant validation middleware.

public sealed class TenantValidationMiddlewareOptions
Inheritance
TenantValidationMiddlewareOptions
Inherited Members

Properties

EnableSubdomainResolution

Gets or sets whether to enable subdomain-based tenant resolution. Default is true.

public bool EnableSubdomainResolution { get; set; }

Property Value

bool

ExcludedPaths

Gets or sets paths excluded from tenant validation.

public string[] ExcludedPaths { get; set; }

Property Value

string[]

IgnoredSubdomains

Gets or sets subdomains to ignore (not treated as tenant IDs). Default includes common subdomains like www, api, admin.

public string[] IgnoredSubdomains { get; set; }

Property Value

string[]

TenantClaimTypes

Gets or sets the JWT claim types to search for tenant ID.

public string[] TenantClaimTypes { get; set; }

Property Value

string[]

TenantHeaderName

Gets or sets the header name for tenant ID. Default is "X-Tenant-ID".

public string TenantHeaderName { get; set; }

Property Value

string