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; }
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; }
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; }
public SecretManagerCommandHandler(IAwsSecretManagerService awsSecretManagerService) { _awsSecretManagerService = awsSecretManagerService; }