Example #1
0
        public ShaLoginManager(
            AbpUserManager <TRole, TUser> userManager,
            IMultiTenancyConfig multiTenancyConfig,
            IRepository <TTenant> tenantRepository,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            IPasswordHasher <TUser> passwordHasher,
            AbpRoleManager <TRole, TUser> roleManager,
            AbpUserClaimsPrincipalFactory <TUser, TRole> claimsPrincipalFactory,
            IRepository <ShaUserLoginAttempt, Guid> shaLoginAttemptRepository,
            IRepository <MobileDevice, Guid> mobileDeviceRepository)
        {
            _passwordHasher         = passwordHasher;
            _claimsPrincipalFactory = claimsPrincipalFactory;
            MultiTenancyConfig      = multiTenancyConfig;
            TenantRepository        = tenantRepository;
            UnitOfWorkManager       = unitOfWorkManager;
            SettingManager          = settingManager;
            UserManagementConfig    = userManagementConfig;
            IocResolver             = iocResolver;
            RoleManager             = roleManager;
            UserManager             = userManager;

            ClientInfoProvider        = NullClientInfoProvider.Instance;
            ShaLoginAttemptRepository = shaLoginAttemptRepository;
            _mobileDeviceRepository   = mobileDeviceRepository;
        }
Example #2
0
        public ExternalAbpLogInManager(
            AbpUserManager <TRole, TUser> userManager,
            IMultiTenancyConfig multiTenancyConfig,
            IRepository <TTenant> tenantRepository,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            IPasswordHasher <TUser> passwordHasher,
            AbpRoleManager <TRole, TUser> roleManager,
            AbpUserClaimsPrincipalFactory <TUser, TRole> claimsPrincipalFactory,
            IRepository <UserLogin, long> userLoginRepository,
            IRepository <TUser, long> userRepository)
        {
            _passwordHasher            = passwordHasher;
            _claimsPrincipalFactory    = claimsPrincipalFactory;
            MultiTenancyConfig         = multiTenancyConfig;
            TenantRepository           = tenantRepository;
            UnitOfWorkManager          = unitOfWorkManager;
            SettingManager             = settingManager;
            UserLoginAttemptRepository = userLoginAttemptRepository;
            UserManagementConfig       = userManagementConfig;
            IocResolver          = iocResolver;
            RoleManager          = roleManager;
            UserManager          = userManager;
            _userLoginRepository = userLoginRepository;
            UserRepository       = userRepository;

            ClientInfoProvider = NullClientInfoProvider.Instance;
        }
Example #3
0
        public TokenAuthController(
            LogInManager logInManager,
            ITenantCache tenantCache,
            AbpLoginResultTypeHelper abpLoginResultTypeHelper,
            TokenAuthConfiguration configuration,
            UserManager userManager,
            ICacheManager cacheManager,
            IOptions <JwtBearerOptions> jwtOptions,
            IExternalAuthConfiguration externalAuthConfiguration,
            IExternalAuthManager externalAuthManager,
            UserRegistrationManager userRegistrationManager,
            IImpersonationManager impersonationManager,
            IUserLinkManager userLinkManager,
            IAppNotifier appNotifier,
            ISmsSender smsSender,
            IEmailSender emailSender,
            IOptions <IdentityOptions> identityOptions,
            GoogleAuthenticatorProvider googleAuthenticatorProvider,
            ExternalLoginInfoManagerFactory externalLoginInfoManagerFactory,
            ISettingManager settingManager,
            IJwtSecurityStampHandler securityStampHandler,
            AbpUserClaimsPrincipalFactory <User, Role> claimsPrincipalFactory,
            IUserDevicesAppService userDevicesAppService,

            IBinaryObjectManager binaryObjectManager)
        {
            _logInManager             = logInManager;
            _tenantCache              = tenantCache;
            _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
            _configuration            = configuration;
            _userManager              = userManager;
            _cacheManager             = cacheManager;
            _jwtOptions = jwtOptions;
            _externalAuthConfiguration = externalAuthConfiguration;
            _externalAuthManager       = externalAuthManager;
            _userRegistrationManager   = userRegistrationManager;
            _impersonationManager      = impersonationManager;
            _userLinkManager           = userLinkManager;
            _appNotifier = appNotifier;
            _smsSender   = smsSender;
            _emailSender = emailSender;
            _googleAuthenticatorProvider     = googleAuthenticatorProvider;
            _externalLoginInfoManagerFactory = externalLoginInfoManagerFactory;
            _settingManager         = settingManager;
            _securityStampHandler   = securityStampHandler;
            _identityOptions        = identityOptions.Value;
            _claimsPrincipalFactory = claimsPrincipalFactory;
            RecaptchaValidator      = NullRecaptchaValidator.Instance;
            _binaryObjectManager    = binaryObjectManager;
            _userDevicesAppService  = userDevicesAppService;
        }
Example #4
0
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     UserManager userManager,
     ICacheManager cacheManager,
     IOptions <JwtBearerOptions> jwtOptions,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     IImpersonationManager impersonationManager,
     IUserLinkManager userLinkManager,
     IAppNotifier appNotifier,
     ISmsSender smsSender,
     IEmailSender emailSender,
     IOptions <IdentityOptions> identityOptions,
     GoogleAuthenticatorProvider googleAuthenticatorProvider,
     ExternalLoginInfoManagerFactory externalLoginInfoManagerFactory,
     ISettingManager settingManager,
     IJwtSecurityStampHandler securityStampHandler,
     AbpUserClaimsPrincipalFactory <User, Role> claimsPrincipalFactory, IRepository <CM_BRANCH, string> cmBranchRepository, LDapAuthConfiguration ldapConfiguration, SignInManager signInManager, IEnumerable <IPasswordValidator <User> > passwordValidators, IRepository <HoSo, int> hoSoRepository)
 {
     _logInManager             = logInManager;
     _tenantCache              = tenantCache;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _configuration            = configuration;
     _userManager              = userManager;
     _cacheManager             = cacheManager;
     _jwtOptions = jwtOptions;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _impersonationManager      = impersonationManager;
     _userLinkManager           = userLinkManager;
     _appNotifier = appNotifier;
     _smsSender   = smsSender;
     _emailSender = emailSender;
     _googleAuthenticatorProvider     = googleAuthenticatorProvider;
     _externalLoginInfoManagerFactory = externalLoginInfoManagerFactory;
     _settingManager         = settingManager;
     _securityStampHandler   = securityStampHandler;
     _identityOptions        = identityOptions.Value;
     _claimsPrincipalFactory = claimsPrincipalFactory;
     _cmBranchRepository     = cmBranchRepository;
     _ldapConfiguration      = ldapConfiguration;
     _signInManager          = signInManager;
     _passwordValidators     = passwordValidators;
     _hoSoRepository         = hoSoRepository;
     RecaptchaValidator      = NullRecaptchaValidator.Instance;
 }
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     AbpUserClaimsPrincipalFactory <User, Role> claimsPrincipalFactory,
     IRepository <User, long> userRepository,
     IRepository <Tenant> tenantRepository)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _claimsPrincipalFactory    = claimsPrincipalFactory;
     _userRepository            = userRepository;
     _tenantRepository          = tenantRepository;
 }
Example #6
0
 public AbpUserClaimsPrincipalFactory_Tests()
 {
     _identityUserManager           = GetRequiredService <IdentityUserManager>();
     _abpUserClaimsPrincipalFactory = GetRequiredService <AbpUserClaimsPrincipalFactory>();
     _testData = GetRequiredService <IdentityTestData>();
 }
Example #7
0
 public MyAccountAppService(AbpUserClaimsPrincipalFactory userClaimsPrincipalFactory, IRandomBuilder randomBuilder, IdentityUserManager userManager, IIdentityRoleRepository roleRepository, IAccountEmailer accountEmailer, IdentitySecurityLogManager identitySecurityLogManager, IOptions <IdentityOptions> identityOptions)
     : base(userManager, roleRepository, accountEmailer, identitySecurityLogManager, identityOptions)
 {
     UserClaimsPrincipalFactory = userClaimsPrincipalFactory;
     RandomBuilder = randomBuilder;
 }
Example #8
0
 public LogInManager(AbpUserManager <Role, User> userManager, IMultiTenancyConfig multiTenancyConfig, IRepository <Tenant> tenantRepository, IUnitOfWorkManager unitOfWorkManager, ISettingManager settingManager, IUserManagementConfig userManagementConfig, IIocResolver iocResolver, IPasswordHasher <User> passwordHasher, AbpRoleManager <Role, User> roleManager, AbpUserClaimsPrincipalFactory <User, Role> claimsPrincipalFactory, IRepository <ShaUserLoginAttempt, Guid> shaLoginAttemptRepository, IRepository <MobileDevice, Guid> mobileDeviceRepository) : base(userManager, multiTenancyConfig, tenantRepository, unitOfWorkManager, settingManager, userManagementConfig, iocResolver, passwordHasher, roleManager, claimsPrincipalFactory, shaLoginAttemptRepository, mobileDeviceRepository)
 {
 }