ABP 模块使用

1 Account模块

Account.httpApi提供用户注册的httpapi,

登录服务由identityserver提供,管理不同client,identityresource和apiResource

1、单体服务

集成identityserver服务,用于认证Api Resource

ConfigureService服务增加AddAuthentication().AddIdentityServerAuthentication(option=>{option.Authority;option.RequestHttpsMetadata;option.ApiName})

在管道增加AddIdentityServer,AddJwtTokenMiddleWare

种子数据IDataSeedContributor定义在模块Domain,

执行在DbMigrator的控制台项目,首先生成Host数据库,导入种子数据IDataSeeder.Seeder(),

然后生成Tenant数据库,导入种子数据DataSeeder.Seeder(tenantId)

猜你喜欢

转载自www.cnblogs.com/cloudsu/p/12167843.html
ABP