public ConsumerController( IIdentityServerClient identityServerClient, IProtectedApiClient protectedApiClient) { _identityServerClient = identityServerClient ?? throw new ArgumentNullException(nameof(identityServerClient)); _protectedApiClient = protectedApiClient ?? throw new ArgumentNullException(nameof(protectedApiClient)); }
public TokenService(IMemoryCache cache, IIdentityServerClient identityServerClient, IConfiguration configuration) { _cache = cache; _identityServerClient = identityServerClient; _configuration = configuration; apiPath = _configuration.GetValue <string>("apiPath"); expiredTime = _configuration.GetValue <string>("TokenExpiresIn"); }
public ProtectedApiBearerTokenHandler( IIdentityServerClient identityServerClient, IHttpContextAccessor _accessor) { _identityServerClient = identityServerClient ?? throw new ArgumentNullException(nameof(identityServerClient)); _httpContextAccessor = _accessor ?? throw new ArgumentNullException(nameof(identityServerClient)); }
public InitiateKycService( IKafkaConsumer <string, InitiateKycResponseModel> consumer, IIdentityServerClient identityServerClient, IHttpClientFactory httpClientFactory, ILogger <InitiateKycService> logger) { _consumer = Guard.IsNotNull(consumer, nameof(consumer)); _identityServerClient = Guard.IsNotNull(identityServerClient, nameof(identityServerClient)); Guard.IsNotNull(httpClientFactory, nameof(httpClientFactory)); _httpClient = httpClientFactory.CreateClient("kyc"); _logger = Guard.IsNotNull(logger, nameof(logger)); }
public CheckMrzStatusService( IKafkaConsumer <string, CheckMrzStatusResponseModel> consumer, IIdentityServerClient identityServerClient, IHttpClientFactory httpClientFactory, IMapper mapper, ILogger <CheckMrzStatusService> logger) { _consumer = Guard.IsNotNull(consumer, nameof(consumer)); _identityServerClient = Guard.IsNotNull(identityServerClient, nameof(identityServerClient)); Guard.IsNotNull(httpClientFactory, nameof(httpClientFactory)); _httpClient = httpClientFactory.CreateClient("kyc"); _mapper = Guard.IsNotNull(mapper, nameof(mapper)); _logger = Guard.IsNotNull(logger, nameof(logger)); }
public VerifyIdentityService( IKafkaConsumer <string, VerificationResponseModel> consumer, IIdentityServerClient identityServerClient, IHttpClientFactory httpClientFactory, IMapper mapper, ILogger <VerifyIdentityService> logger) { _consumer = Guard.IsNotNull(consumer, nameof(consumer)); _identityServerClient = Guard.IsNotNull(identityServerClient, nameof(identityServerClient)); Guard.IsNotNull(httpClientFactory, nameof(httpClientFactory)); _httpClient = httpClientFactory.CreateClient("identity"); _mapper = Guard.IsNotNull(mapper, nameof(mapper)); _logger = Guard.IsNotNull(logger, nameof(logger)); }
public ProtectedApiBearerTokenHandler(IIdentityServerClient identityServerClient, ITokenService tokenService) { _identityServerClient = identityServerClient ?? throw new ArgumentNullException(nameof(identityServerClient)); _tokenService = tokenService; }