Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Documentation/backend/asp-net-core/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion Documentation/backend/core/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Arc.Core supports standard .NET configuration:
"HttpHeader": "X-Correlation-ID"
},
"Tenancy": {
"HttpHeader": "X-Tenant-ID"
"HttpHeader": "X-Custom-Tenant"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion Documentation/backend/tenancy/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ builder.AddCratisArcCore(options =>
"Arc": {
"Tenancy": {
"ResolverType": "Header",
"HttpHeader": "X-Tenant-ID"
"HttpHeader": "X-Custom-Tenant"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions Documentation/backend/tenancy/resolvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
```

Expand Down Expand Up @@ -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`

Expand Down
Loading