Identify tenants by domain name (url)

SAAS systems generate a specified or random secondary domain name for tenants, such as

baidu.salesforce.com
Copy the code

If customers want to use their own domain name, you can generate a secondary domain name in the CNAME system and bind it in the domain name management system

Such a tenant can have two domain names

  • enterprise-bound
  • Secondary domain name generated by the saas system

This identifies the tenant by domain name and initializes the TenantContext.

If you do not want to identify tenants by domain name, you can also identify tenants by login name. This method involves tenant switching. Multiple enterprises work in the same browser