示例#1
0
 public RevokeAuthenticatorAppCommandHandler(IUserRepository userRepository, IClock clock,
                                             ICurrentAuthenticatedUserProvider currentUserService)
 {
     this._userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     this._clock          = clock;
     this._currentAuthenticatedUserProvider = currentUserService;
 }
示例#2
0
 public ValidateEmailMfaCode(IMediator mediator, IAuthenticationService authenticationService, ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider)
 {
     this._mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));
     this._authenticationService =
         authenticationService ?? throw new ArgumentNullException(nameof(authenticationService));
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider;
 }
示例#3
0
 public EditUser(IUserQueries userQueries, IMediator mediator, IRoleQueries roleQueries, ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider)
 {
     this._userQueries = userQueries ?? throw new ArgumentNullException(nameof(userQueries));
     this._mediator    = mediator ?? throw new ArgumentNullException(nameof(mediator));
     this._roleQueries = roleQueries ?? throw new ArgumentNullException(nameof(roleQueries));
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider;
 }
示例#4
0
 public ValidateAppMfaCodeAgainstCurrentUserCommandHandler(
     IUserRepository userRepository,
     ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider)
 {
     this._userRepository = userRepository;
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider;
 }
 public RevokeAuthenticatorDeviceCommandHandler(
     IUserRepository userRepository,
     ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider, IClock clock)
 {
     this._userRepository = userRepository;
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider;
     this._clock = clock;
 }
 public AppMfaRequestedCommandHandler(
     IUserRepository userRepository, ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider,
     IClock clock)
 {
     this._userRepository = userRepository;
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider;
     this._clock = clock;
 }
示例#7
0
 public ValidateDeviceMfaAgainstCurrentUserCommandHandler(IUserRepository userRepository, IFido2 fido2,
                                                          ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider, IClock clock)
 {
     this._userRepository = userRepository;
     this._fido2          = fido2;
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider;
     this._clock = clock;
 }
 public InitiateAuthenticatorDeviceEnrollmentCommandHandler(
     ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider, IUserRepository userRepository,
     IFido2 fido2)
 {
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider;
     this._userRepository = userRepository;
     this._fido2          = fido2;
 }
 public EnrollAuthenticatorDeviceCommandHandler(IUserRepository userRepository, IClock clock,
                                                ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider, IFido2 fido2)
 {
     this._userRepository = userRepository;
     this._clock          = clock;
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider;
     this._fido2 = fido2;
 }
示例#10
0
 public EnrollAuthenticatorAppCommandHandler(IUserRepository userRepository, IClock clock,
     ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider)
 {
     this._userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     this._clock = clock ?? throw new ArgumentNullException(nameof(clock));
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider ??
                                              throw new ArgumentNullException(
                                                  nameof(currentAuthenticatedUserProvider));
 }
 public AuthenticatorApp(
     IUserQueries userQueries,
     ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider)
 {
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider ??
                                              throw new ArgumentNullException(
                                                        nameof(currentAuthenticatedUserProvider));
     this._userQueries = userQueries ?? throw new ArgumentNullException(nameof(userQueries));
 }
示例#12
0
        public ChangePasswordCommandHandler(ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider, IUserRepository userRepository, IOptions <SecuritySettings> securitySettings, IClock clock)
        {
            if (securitySettings == null)
            {
                throw new ArgumentNullException(nameof(securitySettings));
            }

            this._currentAuthenticatedUserProvider =
                currentAuthenticatedUserProvider ?? throw new ArgumentNullException(nameof(currentAuthenticatedUserProvider));
            this._userRepository   = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
            this._clock            = clock ?? throw new ArgumentNullException(nameof(clock));
            this._securitySettings = securitySettings.Value;
        }
        public AuthAppApiController(IMediator mediator, IOptions <SecuritySettings> securitySettings,
                                    UrlEncoder urlEncoder, ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider)
        {
            if (securitySettings == null)
            {
                throw new ArgumentNullException(nameof(securitySettings));
            }

            this._mediator         = mediator ?? throw new ArgumentNullException(nameof(mediator));
            this._securitySettings = securitySettings.Value;
            this._urlEncoder       = urlEncoder ?? throw new ArgumentNullException(nameof(urlEncoder));
            this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider ??
                                                     throw new ArgumentNullException(
                                                               nameof(currentAuthenticatedUserProvider));
        }
 public AuditBehavior(ILogger auditLogger, ICurrentAuthenticatedUserProvider authenticatedUserProvider)
 {
     this._auditLogger = auditLogger;
     this._authenticatedUserProvider = authenticatedUserProvider;
 }
示例#15
0
 public UserQueries(ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider, IConnectionProvider connectionProvider)
 {
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider ?? throw new ArgumentNullException(nameof(currentAuthenticatedUserProvider));
     this._connectionProvider = connectionProvider;
 }
 public UserApiController(IMediator mediator, ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider)
 {
     this._mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider;
 }
 public ValidateEmailMfaCodeAgainstCurrentUserCommandHandler(IUserRepository userRepository, ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider, IClock clock)
 {
     this._userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider ?? throw new ArgumentNullException(nameof(currentAuthenticatedUserProvider));
     this._clock = clock ?? throw new ArgumentNullException(nameof(clock));
 }
 public UpdateProfileCommandHandler(IUserRepository userRepository, ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider)
 {
     this._userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider ?? throw new ArgumentNullException(nameof(currentAuthenticatedUserProvider));
 }
 public ValidateDeviceMfa(ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider, IMediator mediator)
 {
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider;
     this._mediator = mediator;
 }
示例#20
0
 public TopNavViewComponent(ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider)
 {
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider ?? throw new ArgumentNullException(nameof(currentAuthenticatedUserProvider));
 }
 public ValidateAppMfaCode(IMediator mediator, IAuthenticationService authenticationService, ICurrentAuthenticatedUserProvider currentAuthenticatedUserProvider)
 {
     this._mediator = mediator;
     this._authenticationService            = authenticationService;
     this._currentAuthenticatedUserProvider = currentAuthenticatedUserProvider;
 }