예제 #1
0
 public AuthenticationLogger(ILoginAttemptRepository repository, IRequestContext context, IIpStackClient client,
                             IMapper mapper)
 {
     _repository = repository;
     _context    = context;
     _client     = client;
     _mapper     = mapper;
 }
예제 #2
0
 public DoLoginCommandHandler(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager,
                              IEventService events, ILoginAttemptRepository loginAttemptRepository, IUnitOfWork unitOfWork)
 {
     _userManager            = userManager;
     _signInManager          = signInManager;
     _events                 = events;
     _loginAttemptRepository = loginAttemptRepository;
     _unitOfWork             = unitOfWork;
 }
예제 #3
0
        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;
 }
예제 #6
0
 public LoginAttemptsRepositoryService(ILoginAttemptRepository loginAttemptRepository)
 {
     _loginAttemptRepository = loginAttemptRepository;
 }
 public LoginAttemptService(ILoginAttemptRepository repository) : base(repository)
 {
     _repository = repository;
 }
 public GetLoginAttemptQueryHandler(ILoginAttemptRepository loginAttemptRepository)
 {
     _loginAttemptRepository = loginAttemptRepository;
 }
예제 #9
0
 public UserLoginController(ILoginAttemptRepository repo)
 {
     _loginAttemptRepository = repo;
 }
예제 #10
0
 /// <summary>
 /// The default constructor
 /// </summary>
 public UserService(IAMFUserRepository userRepository, ILoginAttemptRepository loginAttemptRepository)
 {
     this.UserRepository         = userRepository;
     this.LoginAttemptRepository = loginAttemptRepository;
 }