identity And ids
作者:互联网
一、identityServer
模块引入AbpAutoMapperModule(对象映射)、AbpIdentityDomainModule、AbpSecurityModule、AbpCachingModule、AbpValidationModule
IdentityServerOptions:对Options.Event.RaiseErrorEvents\RaiseInformationEvents\RaiseFailureEvents\RaiseSuccessEvents开启设置
AbpIdentityServerBuilderOptions:Abp自定义的,可使用pre进行提前配置,即默认开启集成asp.net identity\ AddDeveloperSigningCredential\兼容jwt claim \identityserver claim\ identity claim
IIdentityServerBuilder:即添加identityserver默认服务注册,增加了Abp定义的扩展方法,比如集成AspNetIdentity,增加租户替换IClaimsService为AbpClaimsService,
if (options.IntegrateToAspNetIdentity) { builder.AddAspNetIdentity<IdentityUser>(); builder.AddProfileService<AbpProfileService>(); builder.AddResourceOwnerValidator<AbpResourceOwnerPasswordValidator>(); }
对claim的兼容
可以自己扩展使用PreConfigureServices<> ,比如引入efcore中PreConfigureServices扩展了注入IPersistedGrantStore、AddClientStore、AddResourceStore、AddCorsPolicyService,若不引入,则使用AddInMemoryPersistedGrants、AddInMemoryClients、AddInMemoryApiResources、AddInMemoryIdentityResources
二、identity
标签:claim,builder,ids,PreConfigureServices,Abp,identityserver,identity 来源: https://www.cnblogs.com/cloudsu/p/12059285.html