abp
abp copied to clipboard
TenantKey is configurable and cannot be hardcoded.
__tenant parameter name can be changed using AspNetCoreMultiTenancyOptions.
services.Configure<AspNetCoreMultiTenancyOptions>(options =>
{
options.TenantKey = "MyTenantKey";
});
https://github.com/abpframework/abp/blob/33a450bb621de36517c7943d261a063b3accf4a4/npm/ng-packs/packages/core/src/lib/interceptors/api.interceptor.ts#L29
Thank you @maliming for reporting this. Added it to backlog.
in the angular app, tenant key is already configuratable via token or option. (almost v5.3)
https://github.com/abpframework/abp/blob/rel-7.0/npm/ng-packs/packages/oauth/src/lib/interceptors/api.interceptor.ts
I think we can close the issue