The default key used to identify a tenant in the context data.
Add a default handler for the case when no tenant was matched.
The handler cannot be null.
Add a handler for a given tenant to this handler.
Both tenant and handler cannot be null.
Remove a handler for a given tenant from this handler.
Tenant cannot be null.
Create a MultiTenant handler that will extract the tenant id from a given header name.
Create a MultiTenant handler using a custom tenant extraction function.
Create a MultiTenant handler using a custom tenant extraction function.
Generated using TypeDoc
A handler which selectively executes another handler if a precondition is met.
There are cases where applications are build as multi tenant, in this cases one of the common tasks is to configure different authentication mechanisms for each tenant.
This handler will allow registering any other handler and will only execute it if the precondition is met. There are 2 way of defining a precondition:
Requests that pass the validation will contain a new key in the routing context with the tenant id, for the case of being a default handler the value if this key will be "default".