public AuthenticationLogger(ILoginAttemptRepository repository, IRequestContext context, IIpStackClient client, IMapper mapper) { _repository = repository; _context = context; _client = client; _mapper = mapper; }
public DoLoginCommandHandler(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEventService events, ILoginAttemptRepository loginAttemptRepository, IUnitOfWork unitOfWork) { _userManager = userManager; _signInManager = signInManager; _events = events; _loginAttemptRepository = loginAttemptRepository; _unitOfWork = unitOfWork; }
public AuthRequestValidator(IUserSecurityRepository userSecurityRepository, ILoginAttemptRepository loginAttemptRepository, ICurrentContext currentContext) { this.userSecurityRepository = userSecurityRepository; this.loginAttemptRepository = loginAttemptRepository; this.currentContext = currentContext; RuleFor(r => r.code).NotEmpty().WithMessage("IsRequired").When(r => r.provider != AuthProvider.Local); RuleFor(r => r.clientId).NotEmpty().WithMessage("IsRequired").When(r => r.provider != AuthProvider.Local); RuleFor(r => r.redirectUri).NotEmpty().WithMessage("IsRequired").When(r => r.provider != AuthProvider.Local); RuleFor(r => r.provider).NotEmpty().WithMessage("IsRequired").When(r => r.provider != AuthProvider.Local); RuleFor(r => r.Email).NotEmpty().WithMessage("IsRequired").When(r => r.provider == AuthProvider.Local); RuleFor(r => r.Password).NotEmpty().WithMessage("IsRequired").When(r => r.provider == AuthProvider.Local); }
public LoginHistoryController(ILoginAttemptRepository loginAttemptRepository) { this.loginAttemptRepository = loginAttemptRepository; }
public RejectLoginAttemptCommandHandler(ILoginAttemptRepository loginAttemptRepository, IUnitOfWork unitOfWork) { _loginAttemptRepository = loginAttemptRepository; _unitOfWork = unitOfWork; }
public LoginAttemptsRepositoryService(ILoginAttemptRepository loginAttemptRepository) { _loginAttemptRepository = loginAttemptRepository; }
public LoginAttemptService(ILoginAttemptRepository repository) : base(repository) { _repository = repository; }
public GetLoginAttemptQueryHandler(ILoginAttemptRepository loginAttemptRepository) { _loginAttemptRepository = loginAttemptRepository; }
public UserLoginController(ILoginAttemptRepository repo) { _loginAttemptRepository = repo; }
/// <summary> /// The default constructor /// </summary> public UserService(IAMFUserRepository userRepository, ILoginAttemptRepository loginAttemptRepository) { this.UserRepository = userRepository; this.LoginAttemptRepository = loginAttemptRepository; }