public RecoverEmailCommandHandler(IAccountRepository accountRepository,
                                   ISnsClient snsClient,
                                   IConfiguration configuration,
                                   ISecurityTokenHandler securityTokenHandler,
                                   IAwsSecretManagerService awsSecretManagerService,
                                   ILogger logger)
 {
     _accountRepository       = accountRepository;
     _snsClient               = snsClient;
     _configuration           = configuration;
     _securityTokenHandler    = securityTokenHandler;
     _awsSecretManagerService = awsSecretManagerService;
     _logger = logger;
 }
Exemplo n.º 2
0
        public MySqlConnHelper(IConfiguration configuration,
                               IAwsSecretManagerService awsSecretManagerService)
        {
            var secret = JsonConvert.DeserializeObject <SecretDb>(awsSecretManagerService.GetSecret(configuration["CONN_STRING"]));

            _connectionString = $@"server={secret.Host};
                                userid={secret.Username};
                                password={secret.Password};
                                database=Vanlune;
                                Pooling=True;
                                Min Pool Size=0;
                                Max Pool Size=5;
                                Connection Lifetime=60; 
                                default command timeout=300;";
        }
 public AuthenticateUserCommandHandler(IConfiguration configuration,
                                       ISecurityTokenHandler securityTokenHandler,
                                       IPasswordHasher passwordHasher,
                                       IAccountRepository accountRepository,
                                       IAwsSecretManagerService awsSecretManagerService,
                                       ILogger logger,
                                       IMapper mapper,
                                       IHttpClientFactory clientFactory)
 {
     _configuration           = configuration;
     _securityTokenHandler    = securityTokenHandler;
     _passwordHasher          = passwordHasher;
     _accountRepository       = accountRepository;
     _awsSecretManagerService = awsSecretManagerService;
     _logger        = logger;
     _mapper        = mapper;
     _clientFactory = clientFactory;
 }
Exemplo n.º 4
0
 public CreateAccountsCommandHandler(IRoleClaimAggregationRepository roleClaimAggregationRepository,
                                     IRoleRepository roleRepository,
                                     IAccountRepository accountRepository,
                                     IPasswordHasher passwordHasher,
                                     ISnsClient snsClient,
                                     IConfiguration configuration,
                                     ISecurityTokenHandler securityTokenHandler,
                                     IAwsSecretManagerService awsSecretManagerService)
 {
     _roleClaimAggregationRepository = roleClaimAggregationRepository;
     _roleRepository          = roleRepository;
     _accountRepository       = accountRepository;
     _passwordHasher          = passwordHasher;
     _snsClient               = snsClient;
     _configuration           = configuration;
     _securityTokenHandler    = securityTokenHandler;
     _awsSecretManagerService = awsSecretManagerService;
 }
 public AwsSecretManagerConfigurationProvider(IAwsSecretManagerService secretManagerService)
 {
     _secretManagerService = secretManagerService;
 }
Exemplo n.º 6
0
 public SecretManagerCommandHandler(IAwsSecretManagerService awsSecretManagerService)
 {
     _awsSecretManagerService = awsSecretManagerService;
 }