Feature: Introduce TenantContext and Tenant Detection #1
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
psycodepath/hrp#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
To support multi-tenancy, the application needs a robust, abstract way to represent and detect the currently active tenant from incoming HTTP requests.
Description
Create a
TenantContextdomain model and aTenantDetectorInterfaceport, along with a concreteSubdomainTenantDetectoradapter that determines the active tenant using the request's hostname.User Story
As a host, I want the system to detect which family is accessing the application based on the subdomain so that the application can serve their specific data.
Gherkin Feature
Acceptance Criteria
TenantContextvalue object created underKernel\Domain.TenantDetectorInterfacecreated underKernel\Domain.SubdomainTenantDetectorimplemented underKernel\Infrastructureresolving tenant from host.