示例#1
0
        public StudioXLogInManager(
            StudioXUserManager <TRole, TUser> userManager,
            IMultiTenancyConfig multiTenancyConfig,
            IRepository <TTenant> tenantRepository,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            IPasswordHasher <TUser> passwordHasher,
            StudioXRoleManager <TRole, TUser> roleManager,
            StudioXUserClaimsPrincipalFactory <TUser, TRole> claimsPrincipalFactory)
        {
            this.passwordHasher         = passwordHasher;
            this.claimsPrincipalFactory = claimsPrincipalFactory;
            MultiTenancyConfig          = multiTenancyConfig;
            TenantRepository            = tenantRepository;
            UnitOfWorkManager           = unitOfWorkManager;
            SettingManager             = settingManager;
            UserLoginAttemptRepository = userLoginAttemptRepository;
            UserManagementConfig       = userManagementConfig;
            IocResolver = iocResolver;
            RoleManager = roleManager;
            UserManager = userManager;

            ClientInfoProvider = NullClientInfoProvider.Instance;
        }
示例#2
0
 public LogInManager(
     StudioXUserManager <Role, User> userManager,
     IMultiTenancyConfig multiTenancyConfig,
     IRepository <Tenant> tenantRepository,
     IUnitOfWorkManager unitOfWorkManager,
     ISettingManager settingManager,
     IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
     IUserManagementConfig userManagementConfig,
     IIocResolver iocResolver,
     IPasswordHasher <User> passwordHasher,
     StudioXRoleManager <Role, User> roleManager,
     UserClaimsPrincipalFactory claimsPrincipalFactory
     ) : base(
         userManager,
         multiTenancyConfig,
         tenantRepository,
         unitOfWorkManager,
         settingManager,
         userLoginAttemptRepository,
         userManagementConfig,
         iocResolver,
         passwordHasher,
         roleManager,
         claimsPrincipalFactory)
 {
 }
示例#3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        protected PermissionChecker(StudioXUserManager <TRole, TUser> userManager)
        {
            this.userManager = userManager;

            Logger         = NullLogger.Instance;
            StudioXSession = NullStudioXSession.Instance;
        }
示例#4
0
 public StudioXUserClaimsPrincipalFactory(
     StudioXUserManager <TRole, TUser> userManager,
     StudioXRoleManager <TRole, TUser> roleManager,
     IOptions <IdentityOptions> optionsAccessor
     ) : base(userManager, roleManager, optionsAccessor)
 {
 }
示例#5
0
 protected StudioXSignInManager(
     StudioXUserManager <TRole, TUser> userManager,
     IAuthenticationManager authenticationManager,
     ISettingManager settingManager,
     IUnitOfWorkManager unitOfWorkManager)
     : base(
         userManager,
         authenticationManager)
 {
     this.settingManager    = settingManager;
     this.unitOfWorkManager = unitOfWorkManager;
 }
示例#6
0
 protected StudioXSignInManager(
     StudioXUserManager <TRole, TUser> userManager,
     IHttpContextAccessor contextAccessor,
     ISettingManager settingManager,
     IUnitOfWorkManager unitOfWorkManager,
     IStudioXZeroAspNetCoreConfiguration configuration)
 {
     UserManager            = userManager;
     this.contextAccessor   = contextAccessor;
     this.settingManager    = settingManager;
     this.unitOfWorkManager = unitOfWorkManager;
     this.configuration     = configuration;
 }
示例#7
0
 public StudioXSignInManager(
     StudioXUserManager <TRole, TUser> userManager,
     IHttpContextAccessor contextAccessor,
     StudioXUserClaimsPrincipalFactory <TUser, TRole> claimsFactory,
     IOptions <IdentityOptions> optionsAccessor,
     ILogger <SignInManager <TUser> > logger,
     IUnitOfWorkManager unitOfWorkManager,
     ISettingManager settingManager)
     : base(
         userManager,
         contextAccessor,
         claimsFactory,
         optionsAccessor,
         logger)
 {
     this.unitOfWorkManager = unitOfWorkManager;
     this.settingManager    = settingManager;
 }
示例#8
0
        protected StudioXLogInManager(
            StudioXUserManager <TRole, TUser> userManager,
            IMultiTenancyConfig multiTenancyConfig,
            IRepository <TTenant> tenantRepository,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            StudioXRoleManager <TRole, TUser> roleManager)
        {
            MultiTenancyConfig         = multiTenancyConfig;
            TenantRepository           = tenantRepository;
            UnitOfWorkManager          = unitOfWorkManager;
            SettingManager             = settingManager;
            UserLoginAttemptRepository = userLoginAttemptRepository;
            UserManagementConfig       = userManagementConfig;
            IocResolver = iocResolver;
            RoleManager = roleManager;
            UserManager = userManager;

            ClientInfoProvider = NullClientInfoProvider.Instance;
        }