예제 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public PermissionChecker(MajidUserManager <TRole, TUser> userManager)
        {
            _userManager = userManager;

            Logger       = NullLogger.Instance;
            MajidSession = NullMajidSession.Instance;
        }
 public MajidUserClaimsPrincipalFactory(
     MajidUserManager <TRole, TUser> userManager,
     MajidRoleManager <TRole, TUser> roleManager,
     IOptions <IdentityOptions> optionsAccessor
     ) : base(userManager, roleManager, optionsAccessor)
 {
 }
예제 #3
0
        public MajidLogInManager(
            MajidUserManager <TRole, TUser> userManager,
            IMultiTenancyConfig multiTenancyConfig,
            IRepository <TTenant> tenantRepository,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            IPasswordHasher <TUser> passwordHasher,
            MajidRoleManager <TRole, TUser> roleManager,
            MajidUserClaimsPrincipalFactory <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;
        }
 public MajidSignInManager(
     MajidUserManager <TRole, TUser> userManager,
     IHttpContextAccessor contextAccessor,
     MajidUserClaimsPrincipalFactory <TUser, TRole> claimsFactory,
     IOptions <IdentityOptions> optionsAccessor,
     ILogger <SignInManager <TUser> > logger,
     IUnitOfWorkManager unitOfWorkManager,
     ISettingManager settingManager,
     IAuthenticationSchemeProvider schemes)
     : base(
         userManager,
         contextAccessor,
         claimsFactory,
         optionsAccessor,
         logger,
         schemes)
 {
     _unitOfWorkManager = unitOfWorkManager;
     _settingManager    = settingManager;
 }
예제 #5
0
        protected MajidLogInManager(
            MajidUserManager <TRole, TUser> userManager,
            IMultiTenancyConfig multiTenancyConfig,
            IRepository <TTenant> tenantRepository,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            MajidRoleManager <TRole, TUser> roleManager)
        {
            MultiTenancyConfig         = multiTenancyConfig;
            TenantRepository           = tenantRepository;
            UnitOfWorkManager          = unitOfWorkManager;
            SettingManager             = settingManager;
            UserLoginAttemptRepository = userLoginAttemptRepository;
            UserManagementConfig       = userManagementConfig;
            IocResolver = iocResolver;
            RoleManager = roleManager;
            UserManager = userManager;

            ClientInfoProvider = NullClientInfoProvider.Instance;
        }