public UserLinkAppService(
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     IUserLinkManager userLinkManager,
     IRepository<Tenant> tenantRepository,
     IRepository<UserAccount, long> userAccountRepository)
 {
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _userLinkManager = userLinkManager;
     _tenantRepository = tenantRepository;
     _userAccountRepository = userAccountRepository;
 }
Exemple #2
0
 public WechatController(LogInManager logInManager,
                         ITenantCache tenantCache,
                         AbpLoginResultTypeHelper abpLoginResultTypeHelper,
                         TokenAuthConfiguration configuration,
                         UserManager userManager,
                         ICacheManager cacheManager,
                         IOptions <JwtBearerOptions> jwtOptions,
                         IExternalAuthManager externalAuthManager,
                         IOptions <IdentityOptions> identityOptions,
                         IWechatService wechatService,
                         SignInManager signInManager)
     : base(logInManager, tenantCache, abpLoginResultTypeHelper, configuration, userManager, cacheManager, jwtOptions, externalAuthManager, identityOptions)
 {
     _wechatService     = wechatService;
     _signInManager     = signInManager;
     RecaptchaValidator = NullRecaptchaValidator.Instance;
 }
Exemple #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,
     IEmsJwtSecurityStampHandler securityStampHandler,
     AbpUserClaimsPrincipalFactory <User, Role> claimsPrincipalFactory)
 {
     _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;
 }
Exemple #4
0
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
 }
 public TenantRegistrationController(
     IMultiTenancyConfig multiTenancyConfig,
     TenantManager tenantManager,
     EditionManager editionManager,
     IAppNotifier appNotifier,
     UserManager userManager,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     LogInManager logInManager)
 {
     _multiTenancyConfig       = multiTenancyConfig;
     _tenantManager            = tenantManager;
     _editionManager           = editionManager;
     _appNotifier              = appNotifier;
     _userManager              = userManager;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _logInManager             = logInManager;
 }
Exemple #6
0
 public TokenAuthController(
     LogInManager logInManager,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     UserManager userManager,
     ICacheManager cacheManager,
     IOptions <IdentityOptions> identityOptions,
     ITenantCache tenantCache)
 {
     _tenantCache = tenantCache;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _configuration            = configuration;
     _logInManager             = logInManager;
     _userManager     = userManager;
     _cacheManager    = cacheManager;
     _identityOptions = identityOptions.Value;
 }
Exemple #7
0
 public AccountController(
     UserManager userManager,
     IMultiTenancyConfig multiTenancyConfig,
     RoleManager roleManager,
     TenantManager tenantManager,
     IUnitOfWorkManager unitOfWorkManager,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     LogInManager logInManager)
 {
     _userManager              = userManager;
     _multiTenancyConfig       = multiTenancyConfig;
     _roleManager              = roleManager;
     _tenantManager            = tenantManager;
     _unitOfWorkManager        = unitOfWorkManager;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _logInManager             = logInManager;
 }
 public UploadController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager, IHostingEnvironment env)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _appConfiguration          = env.GetAppConfiguration();
 }
Exemple #9
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,
     IRepository <PERSONALS, string> personalsRepo,
     IRepository <PERSONALS_MEMBER, string> personalsMemberRepo,
     IRepository <MP_UserPersonals> mpUserPersonalsRepo
     )
 {
     _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;
     _identityOptions             = identityOptions.Value;
     _personalsRepo       = personalsRepo;
     _personalsMemberRepo = personalsMemberRepo;
     _mpUserPersonalsRepo = mpUserPersonalsRepo;
 }
Exemple #10
0
 public ResourceOwnerPasswordValidator(
     IConfiguration appConfiguration,
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager)
 {
     _appConfiguration          = appConfiguration;
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
 }
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IUserManager 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,
     IRepository <Tenant> tenantRepository,
     IAccountAppService accountAppService,
     IRepository <User, long> userRepository)
 {
     _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;
     _identityOptions             = identityOptions.Value;
     _tenantRepository            = tenantRepository;
     _accountAppService           = accountAppService;
     _userRepository = userRepository;
 }
 public TenantRegistrationController(
     IMultiTenancyConfig multiTenancyConfig,
     UserManager userManager,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     LogInManager logInManager,
     SignInManager signInManager,
     IWebUrlService webUrlService,
     ITenantRegistrationAppService tenantRegistrationAppService,
     IPasswordComplexitySettingStore passwordComplexitySettingStore)
 {
     _multiTenancyConfig             = multiTenancyConfig;
     _userManager                    = userManager;
     _abpLoginResultTypeHelper       = abpLoginResultTypeHelper;
     _logInManager                   = logInManager;
     _signInManager                  = signInManager;
     _webUrlService                  = webUrlService;
     _tenantRegistrationAppService   = tenantRegistrationAppService;
     _passwordComplexitySettingStore = passwordComplexitySettingStore;
 }
Exemple #13
0
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     //IExternalAuthConfiguration externalAuthConfiguration,
     //IExternalAuthManager externalAuthManager
     //UserRegistrationManager userRegistrationManager
     IRepository <User, long> userRepository)
 {
     _logInManager             = logInManager;
     _tenantCache              = tenantCache;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _configuration            = configuration;
     //_externalAuthConfiguration = externalAuthConfiguration;
     //_externalAuthManager = externalAuthManager;
     //_userRegistrationManager = userRegistrationManager;
     _userRepository = userRepository;
 }
Exemple #14
0
        public async Task <IActionResult> Bind(WechatBindInput input)
        {
            var openId = HttpContext.Session.GetString("WechatOpenId");

            if (string.IsNullOrEmpty(openId))
            {
                return(Content("请从微信中访问"));
            }

            if (UseCaptchaOnRegistration())
            {
                RecaptchaValidator.Validate(input.Captcha);
            }

            var tenancyName = GetTenancyNameOrNull();

            var loginResult = await LogInManager.LoginAsync(input.UserNameOrEmail, input.Password, tenancyName);

            if (loginResult.Result != AbpLoginResultType.Success)
            {
                var exception =
                    AbpLoginResultTypeHelper.CreateExceptionForFailedLoginAttempt(loginResult.Result,
                                                                                  input.UserNameOrEmail, tenancyName);
                ViewData["Error"] = exception.Message;
                return(View(input));
            }

            // 绑定
            await _wechatService.BindAsync(new WechtLoginInput
            {
                UserId      = loginResult.User.Id,
                TenantId    = loginResult.Tenant.Id,
                ProviderKey = openId
            });

            await _signInManager.SignInAsync(loginResult.User, true);

            if (AbpUrlHelper.IsLocalUrl(Request, input.ReturnUrl))
            {
                return(Redirect(input.ReturnUrl));
            }
            return(Redirect("/"));
        }
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     IOptions <AppSettings> appSettings)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _appSettings               = appSettings;
     uploadHelper               = new UploadHelper(appSettings);
 }
Exemple #16
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="logInManager"></param>
 /// <param name="tenantCache"></param>
 /// <param name="abpLoginResultTypeHelper"></param>
 /// <param name="configuration"></param>
 /// <param name="externalAuthConfiguration"></param>
 /// <param name="externalAuthManager"></param>
 /// <param name="userRegistrationManager"></param>
 /// <param name="customerAppService"></param>
 /// <param name="hostingEnv"></param>
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     ICustomerAppService customerAppService, IHostingEnvironment hostingEnv)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _customerAppService        = customerAppService;
     this._hostingEnv           = hostingEnv;
 }
Exemple #17
0
 public AccountController(
     LogInManager logInManager,
     UserManager userManager,
     IMultiTenancyConfig multiTenancyConfig,
     IUserEmailer userEmailer,
     RoleManager roleManager,
     TenantManager tenantManager,
     IUnitOfWorkManager unitOfWorkManager,
     ITenancyNameFinder tenancyNameFinder,
     ICacheManager cacheManager,
     IAppNotifier appNotifier,
     IWebUrlService webUrlService,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     IUserLinkManager userLinkManager,
     INotificationSubscriptionManager notificationSubscriptionManager,
     SignInManager signInManager,
     IAuthenticationManager authenticationManager,
     ILanguageManager languageManager,
     IUserPolicy userPolicy,
     IRepository <FinanceAccount, long> accountRepository)
 {
     _userManager                     = userManager;
     _multiTenancyConfig              = multiTenancyConfig;
     _userEmailer                     = userEmailer;
     _roleManager                     = roleManager;
     _tenantManager                   = tenantManager;
     _unitOfWorkManager               = unitOfWorkManager;
     _tenancyNameFinder               = tenancyNameFinder;
     _cacheManager                    = cacheManager;
     _webUrlService                   = webUrlService;
     _appNotifier                     = appNotifier;
     _abpLoginResultTypeHelper        = abpLoginResultTypeHelper;
     _userLinkManager                 = userLinkManager;
     _notificationSubscriptionManager = notificationSubscriptionManager;
     _signInManager                   = signInManager;
     _authenticationManager           = authenticationManager;
     _languageManager                 = languageManager;
     _userPolicy        = userPolicy;
     _logInManager      = logInManager;
     _accountRepository = accountRepository;
 }
Exemple #18
0
 public AuthorizeControllerBase(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     UserManager userManager,
     ICacheManager cacheManager,
     IOptions <JwtBearerOptions> jwtOptions,
     IExternalAuthManager externalAuthManager,
     IOptions <IdentityOptions> identityOptions)
 {
     LogInManager             = logInManager;
     TenantCache              = tenantCache;
     AbpLoginResultTypeHelper = abpLoginResultTypeHelper;
     Configuration            = configuration;
     UserManager              = userManager;
     CacheManager             = cacheManager;
     JwtOptions          = jwtOptions;
     ExternalAuthManager = externalAuthManager;
     IdentityOptions     = identityOptions.Value;
 }
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     IDapperRepository <AbpUsersEx, long> userRepository,
     RoleNameAppService roleNameAppService)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _userRepository            = userRepository;
     _roleNameAppService        = roleNameAppService;
 }
 public TenantRegistrationController(
     IMultiTenancyConfig multiTenancyConfig,
     TenantManager tenantManager,
     EditionManager editionManager,
     IAppNotifier appNotifier,
     UserManager userManager,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     IRecaptchaValidationService recaptchaValidationService,
     LogInManager logInManager,
     SignInManager signInManager)
 {
     _multiTenancyConfig         = multiTenancyConfig;
     _tenantManager              = tenantManager;
     _editionManager             = editionManager;
     _appNotifier                = appNotifier;
     _userManager                = userManager;
     _abpLoginResultTypeHelper   = abpLoginResultTypeHelper;
     _recaptchaValidationService = recaptchaValidationService;
     _logInManager               = logInManager;
     _signInManager              = signInManager;
 }
Exemple #21
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,
     IdentityServerTokenGeneratorFacade identityServerTokenGeneratorFacade)
 {
     _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;
     _identityOptions                    = identityOptions.Value;
     _identityServerTokenGeneratorFacade = identityServerTokenGeneratorFacade;
 }
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     UserManager userManager,
     TenantManager tenantManager,
     ICryptoService cryptoService)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _userManager               = userManager;
     _tenantManager             = tenantManager;
     _tokenHelper               = new TokenHelper(cryptoService);
 }
 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;
 }
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     IRepository <ApplicationUser, Guid> applicationUserReposatory,
     UserManager userManager,
     IEncryptionDecryptionService encryptionDecryptionService,
     UserRegistrationManager userRegistrationManager)
 {
     _logInManager                = logInManager;
     _tenantCache                 = tenantCache;
     _abpLoginResultTypeHelper    = abpLoginResultTypeHelper;
     _configuration               = configuration;
     _externalAuthConfiguration   = externalAuthConfiguration;
     _externalAuthManager         = externalAuthManager;
     _userRegistrationManager     = userRegistrationManager;
     _applicationUserReposatory   = applicationUserReposatory;
     _userManager                 = userManager;
     _encryptionDecryptionService = encryptionDecryptionService;
 }
 public PodAuthenticationController(
     IAccessTokenManager accessTokenManager,
     TokenAuthConfiguration tokenAuthConfiguration,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     LogInManager logInManager,
     IRepository <ExternalToken> externalTokensRepo,
     UserManager userManager,
     IRepository <User, long> userRepo,
     IRepository <StaticUser> staticUserRepo,
     IPodClient service,
     IJwtCreator jwtCreator)
 {
     this.accessTokenManager       = accessTokenManager;
     this.tokenAuthConfiguration   = tokenAuthConfiguration;
     this.abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     this.logInManager             = logInManager;
     this.externalTokensRepo       = externalTokensRepo;
     this.userManager    = userManager;
     this.userRepo       = userRepo;
     this.staticUserRepo = staticUserRepo;
     _service            = service;
     _jwtCreator         = jwtCreator;
 }
 public AccountController(
     UserManager userManager,
     IMultiTenancyConfig multiTenancyConfig,
     TenantManager tenantManager,
     IUnitOfWorkManager unitOfWorkManager,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     LogInManager logInManager,
     SignInManager signInManager,
     UserRegistrationManager userRegistrationManager,
     ISessionAppService sessionAppService,
     ITenantCache tenantCache,
     INotificationPublisher notificationPublisher,
     ILookupAppService lookupAppService,
     ISettingManager settingManager,
     INotificationManager notificationManager,
     IEmailService emailService,
     ITemplateManager templateManager
     )
 {
     _userManager              = userManager;
     _multiTenancyConfig       = multiTenancyConfig;
     _tenantManager            = tenantManager;
     _unitOfWorkManager        = unitOfWorkManager;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _logInManager             = logInManager;
     _signInManager            = signInManager;
     _userRegistrationManager  = userRegistrationManager;
     _sessionAppService        = sessionAppService;
     _tenantCache              = tenantCache;
     _notificationPublisher    = notificationPublisher;
     _lookupAppService         = lookupAppService;
     _settingManager           = settingManager;
     _notificationManager      = notificationManager;
     _emailService             = emailService;
     _templateManager          = templateManager;
 }
 public TokenAuthController(TokenAuthConfiguration configuration, ITenantCache tenantCache, LogInManager logInManager, AbpLoginResultTypeHelper abpLoginResultTypeHelper, LegoAbpUserManager userManager)
 {
     _configuration            = configuration;
     _tenantCache              = tenantCache;
     _logInManager             = logInManager;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _userManager              = userManager;
 }
 public AbpProjectTemplateAuthorizationServerProvider(AbpLoginResultTypeHelper abpLoginResultTypeHelper, LogInManager logInManager)
 {
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _logInManager             = logInManager;
 }
        public ExternalValidator(IExternalAuthManager externalAuthManager, LogInManager logInManager, ITenantCache tenantCache, AbpLoginResultTypeHelper abpLoginResultTypeHelper, UserRegistrationManager userRegistrationManager,
                                 IServiceAuthManager serviceAuthManager)
        {
            _externalAuthManager      = externalAuthManager;
            _logInManager             = logInManager;
            _tenantCache              = tenantCache;
            _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
            _userRegistrationManager  = userRegistrationManager;

            _serviceAuthManager = serviceAuthManager;
        }
Exemple #30
0
 public AuthorizeController(ITenantCache tenantCache, LogInManager logInManager, SignInManager signInManager, AbpLoginResultTypeHelper abpLoginResultTypeHelper)
 {
     _tenantCache              = tenantCache;
     _logInManager             = logInManager;
     _signInManager            = signInManager;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
 }
 public IdentityAuthenticationStateProvider(LogInManager logInManager, AbpLoginResultTypeHelper abpLoginResultTypeHelper, SignInManager signInManager)
 {
     _logInManager             = logInManager;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _signInManager            = signInManager;
 }