From 13f0cfa5b63a925c2f37cb0101fb60bb3fd9fd4d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 29 Jul 2026 12:02:38 +0000 Subject: [PATCH] Align tenancy docs with the actual default tenant header The documentation examples used 'X-Tenant-ID', which implied it was the default or standard tenant header. The real default is 'x-cratis-tenant-id', so the examples now use the 'X-Custom-Tenant' placeholder already used elsewhere to make clear these are custom overrides. --- Documentation/backend/asp-net-core/configuration.md | 2 +- Documentation/backend/core/getting-started.md | 2 +- Documentation/backend/tenancy/configuration.md | 2 +- Documentation/backend/tenancy/resolvers.md | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/backend/asp-net-core/configuration.md b/Documentation/backend/asp-net-core/configuration.md index 820c7d063..1bbc36f37 100644 --- a/Documentation/backend/asp-net-core/configuration.md +++ b/Documentation/backend/asp-net-core/configuration.md @@ -126,7 +126,7 @@ builder.AddCratisArc(options => options.CorrelationId.HttpHeader = "X-My-Correlation-ID"; // Configure tenancy - options.Tenancy.HttpHeader = "X-Tenant-ID"; + options.Tenancy.HttpHeader = "X-Custom-Tenant"; // Configure generated APIs options.GeneratedApis.RoutePrefix = "myapi"; diff --git a/Documentation/backend/core/getting-started.md b/Documentation/backend/core/getting-started.md index 91942d547..97ba10410 100644 --- a/Documentation/backend/core/getting-started.md +++ b/Documentation/backend/core/getting-started.md @@ -195,7 +195,7 @@ Arc.Core supports standard .NET configuration: "HttpHeader": "X-Correlation-ID" }, "Tenancy": { - "HttpHeader": "X-Tenant-ID" + "HttpHeader": "X-Custom-Tenant" } } }, diff --git a/Documentation/backend/tenancy/configuration.md b/Documentation/backend/tenancy/configuration.md index eec2c3ab7..ea251bdd9 100644 --- a/Documentation/backend/tenancy/configuration.md +++ b/Documentation/backend/tenancy/configuration.md @@ -23,7 +23,7 @@ builder.AddCratisArcCore(options => "Arc": { "Tenancy": { "ResolverType": "Header", - "HttpHeader": "X-Tenant-ID" + "HttpHeader": "X-Custom-Tenant" } } } diff --git a/Documentation/backend/tenancy/resolvers.md b/Documentation/backend/tenancy/resolvers.md index 3359d4b3d..3449e1942 100644 --- a/Documentation/backend/tenancy/resolvers.md +++ b/Documentation/backend/tenancy/resolvers.md @@ -11,7 +11,7 @@ Resolves the tenant ID from an HTTP header. ```csharp builder.AddCratisArcCore(options => { - options.UseHeaderTenancy("X-Tenant-ID"); + options.UseHeaderTenancy("X-Custom-Tenant"); }); ``` @@ -50,11 +50,11 @@ Resolves the tenant ID from the first segment of the request hostname. When the ```csharp builder.AddCratisArcCore(options => { - options.UseSubdomainTenancy("X-Tenant-ID"); + options.UseSubdomainTenancy("X-Custom-Tenant"); }); ``` -A request to `acme.myapp.com` resolves the tenant as `acme`. A request to `myapp.com` falls back to the `X-Tenant-ID` header. This pattern is useful for SaaS applications where each tenant is routed through its own subdomain. +A request to `acme.myapp.com` resolves the tenant as `acme`. A request to `myapp.com` falls back to the `X-Custom-Tenant` header. This pattern is useful for SaaS applications where each tenant is routed through its own subdomain. Default fallback header: `x-cratis-tenant-id`