I have one more question. The configure subdomain for tenant in the angular application required to domain 2nd level
Sorry, I made a mistake, angular supports domain resolver. but it requires the same domain name suffix., all are .net
or .com
This is because when Angular replaces the URL, it will only replace the tenant and will not change the domain name suffix.
That's why https://testing-api.{0}
doesn't work, it expects https://testing-api.{0}.com
Hi,
You can check this:
https://support.abp.io/QA/Questions/245/ABP-LIC-0008---License-check-failed-for-'XXXXX' https://support.abp.io/QA/Questions/69/
Hi,
This is because the Blazor Server uses a hybrid UI, my account page is rendered as an MVC UI.
You need also to configure the MVC UI:
Configure<LeptonXThemeMvcOptions>(options =>
{
options.ApplicationLayout = LeptonXMvcLayouts.TopMenu;
});
Hi,
You don't have to do this, if a feature is only visible to the host user, you can define a host-only permission.
See: https://docs.abp.io/en/abp/latest/Authorization#multi-tenancy
Hi,
Your use case is a corner case, ABP only supports out-of-the-box subdomain tenants. so you need more custom work.
Angular applications only support determining the current tenant from subdomains
This is the source code of Angular multi-tenant. https://github.com/abpframework/abp/blob/dev/npm/ng-packs/packages/core/src/lib/utils/multi-tenancy-utils.ts
Here is how the code basically works:
Here, the environment service is used to set the API and AuthServer server URL.
You can create your own help class to resolve the tenant, set the current tenant and replace the URL.
https://docs.abp.io/en/abp/latest/UI/Angular/Environment#environmentservice
For public website, You can use AbpRemoteServiceOptions
to change the URL of the API.
https://docs.abp.io/en/abp/latest/API/Dynamic-CSharp-API-Clients#abpremoteserviceoptions
Hi,
It will be fixed in the next patch version(7.3.3)
Hi,
Is this working on local but not AKS?
As I understand, AKS uses the internal network, maybe it can't get the path of the public network.
You can write logs in the tenant resolver to check the current request host value.
Hi,
Can you share a new project that can reproduce the problem with me? shiwei.liang@volosoft.com I will check it.
Hi,
Please add a new migration file and apply database migration.