草庐IT

IdentityFactoryOptions

全部标签

c# - 如何设置 IdentityFactoryOptions<AppIdentityUserManager> 选项?

如果您使用过Identity2.0,您就会看到这段代码:publicstaticAppIdentityUserManagerCreate(IdentityFactoryOptionsoptions,IOwinContextcontext){[snip]vardataProtectionProvider=options.DataProtectionProvider;if(dataProtectionProvider!=null){manager.UserTokenProvider=newDataProtectorTokenProvider(dataProtectionProvider.C