コード例 #1
0
 public JTUserClaimsPrincipalFactory(
     JTUserManager <TRole, TUser> userManager,
     JTRoleManager <TRole, TUser> roleManager,
     IOptions <IdentityOptions> optionsAccessor
     ) : base(userManager, roleManager, optionsAccessor)
 {
 }
コード例 #2
0
        public JTLogInManager(
            JTUserManager <TRole, TUser> userManager,
            IMultiTenancyConfig multiTenancyConfig,
            IRepository <TTenant> tenantRepository,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IRepository <JTUserLoginAttempt, long> userLoginAttemptRepository,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            IPasswordHasher <TUser> passwordHasher,
            JTRoleManager <TRole, TUser> roleManager,
            JTUserClaimsPrincipalFactory <TUser, TRole> claimsPrincipalFactory)
        {
            _passwordHasher            = passwordHasher;
            _claimsPrincipalFactory    = claimsPrincipalFactory;
            MultiTenancyConfig         = multiTenancyConfig;
            TenantRepository           = tenantRepository;
            UnitOfWorkManager          = unitOfWorkManager;
            SettingManager             = settingManager;
            UserLoginAttemptRepository = userLoginAttemptRepository;
            UserManagementConfig       = userManagementConfig;
            IocResolver = iocResolver;
            RoleManager = roleManager;
            UserManager = userManager;

            ClientInfoProvider = NullClientInfoProvider.Instance;
        }
コード例 #3
0
        public JTUserManager(
            JTRoleManager <TRole, TUser> roleManager,
            JTUserStore <TRole, TUser> userStore,
            IOptions <IdentityOptions> optionsAccessor,
            IPasswordHasher <TUser> passwordHasher,
            IEnumerable <IUserValidator <TUser> > userValidators,
            IEnumerable <IPasswordValidator <TUser> > passwordValidators,
            ILookupNormalizer keyNormalizer,
            IdentityErrorDescriber errors,
            IServiceProvider services,
            ILogger <UserManager <TUser> > logger,
            IPermissionManager permissionManager,
            IUnitOfWorkManager unitOfWorkManager,
            ICacheManager cacheManager,
            //IRepository<OrganizationUnit, long> organizationUnitRepository,
            //IRepository<UserOrganizationUnit, long> userOrganizationUnitRepository,
            //IOrganizationUnitSettings organizationUnitSettings,
            ISettingManager settingManager)
            : base(
                userStore,
                optionsAccessor,
                passwordHasher,
                userValidators,
                passwordValidators,
                keyNormalizer,
                errors,
                services,
                logger)
        {
            _permissionManager = permissionManager;
            _unitOfWorkManager = unitOfWorkManager;
            _cacheManager      = cacheManager;
            //_organizationUnitRepository = organizationUnitRepository;
            //_userOrganizationUnitRepository = userOrganizationUnitRepository;
            //_organizationUnitSettings = organizationUnitSettings;
            _settingManager  = settingManager;
            _optionsAccessor = optionsAccessor;

            UserStore           = userStore;
            RoleManager         = roleManager;
            LocalizationManager = NullLocalizationManager.Instance;
            //LocalizationSourceName = AbpZeroConsts.LocalizationSourceName;
        }