Example #1
0
 public ProxyController(IAccountGateway accountServices,
                        ICustomerGateway customerService, IIdentityGateway identityService)
 {
     _accountServices = accountServices;
     _customerService = customerService;
     _identityService = identityService;
 }
 public SearchController(
     IErrorRepository errorRepository,
     ILogRepository logRepository,
     IIdentityGateway identityGateway
     ) : base(identityGateway)
 {
     _logRepository = logRepository;
 }
Example #3
0
 public WhoAmiController(
     ILogRepository logRepository,
     IErrorRepository errorRepository,
     IIdentityGateway identityGateway
     ) : base(identityGateway)
 {
     _logRepository   = logRepository;
     _errorRepository = errorRepository;
 }
Example #4
0
 public ErrorController(
     ILogRepository logRepository,
     IErrorRepository errorRepository,
     IIdentityGateway identityGateway,
     IEmailSender emailSender
     ) : base(identityGateway)
 {
     _logRepository   = logRepository;
     _errorRepository = errorRepository;
     _emailSender     = emailSender;
 }
 public UsersController(
     IIdentityGateway identityGateway,
     IUserRepository userRepository,
     IRoleRepository roleRepository,
     ILogRepository logRepository
     ) : base(identityGateway)
 {
     _userRepository = userRepository;
     _roleRepository = roleRepository;
     _logRepository  = logRepository;
 }
Example #6
0
 public AccountsController(IIdentityGateway identityGateway,
                           IUserRepository userRepository,
                           IEmailSender emailSender,
                           ILogRepository logRepository,
                           IRoleRepository roleRepository,
                           IEmailTemplateRenderer emailTemplateRenderer
                           ) : base(identityGateway)
 {
     _identityGateway       = identityGateway;
     _userRepository        = userRepository;
     _emailSender           = emailSender;
     _logRepository         = logRepository;
     _roleRepository        = roleRepository;
     _emailTemplateRenderer = emailTemplateRenderer;
 }
Example #7
0
 public LogsController(
     IRoleRepository roleRepository,
     ILogRepository logRepository,
     IErrorRepository errorRepository,
     IIdentityGateway identityGateway,
     IJobRunner jobRunner,
     IUserRepository userRepository,
     INotificationRepository notificationRepository
     ) : base(identityGateway)
 {
     _logRepository          = logRepository;
     _errorRepository        = errorRepository;
     _jobRunner              = jobRunner;
     _userRepository         = userRepository;
     _roleRepository         = roleRepository;
     _notificationRepository = notificationRepository;
 }
Example #8
0
        public BaseApiController(IIdentityGateway identityGateway)
        {
            IdentityGateway = identityGateway;
            Identity        = AuthProvider.Identity();
            if (!Identity.IsAuthenticated)
            {
                return;
            }

            Auth0User = IdentityGateway.FindIdentiyClaims();
            if (Auth0User == null)
            {
                return;
            }
            UserRepository userRepository = new UserRepository();
            var            userId         = userRepository.GetIdByAuth0Id(Auth0User.UserId);

            CurrentUserId = userId;
            IsDbUser      = false;
        }
 public AdminController(IIdentityGateway identityGateway) : base(identityGateway)
 {
 }