feat: 完成多租户模块基础搭建
This commit is contained in:
@@ -125,7 +125,12 @@ namespace Yi.Abp.Web
|
|||||||
Configure<AbpTenantResolveOptions>(options =>
|
Configure<AbpTenantResolveOptions>(options =>
|
||||||
{
|
{
|
||||||
//基于cookie jwt不好用,有坑
|
//基于cookie jwt不好用,有坑
|
||||||
options.TenantResolvers.RemoveAll(x => x.Name == CookieTenantResolveContributor.ContributorName);
|
options.TenantResolvers.Clear();
|
||||||
|
options.TenantResolvers.Add(new HeaderTenantResolveContributor());
|
||||||
|
//options.TenantResolvers.Add(new HeaderTenantResolveContributor());
|
||||||
|
//options.TenantResolvers.Add(new CookieTenantResolveContributor());
|
||||||
|
|
||||||
|
//options.TenantResolvers.RemoveAll(x => x.Name == CookieTenantResolveContributor.ContributorName);
|
||||||
});
|
});
|
||||||
|
|
||||||
//jwt鉴权
|
//jwt鉴权
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user