public ClientCredentialTokenService(IOptions <ServiceApiSettings> serviceApiSettings, IOptions <ClientSettings> clientSettings, IClientAccessTokenCache clientAccessTokenCache, HttpClient httpClient) { _serviceApiSettings = serviceApiSettings.Value ?? throw new ArgumentNullException(nameof(serviceApiSettings)); _clientSettings = clientSettings.Value ?? throw new ArgumentNullException(nameof(clientSettings)); _clientAccessTokenCache = clientAccessTokenCache ?? throw new ArgumentNullException(nameof(clientAccessTokenCache)); _httpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient)); }
public ClientCredentialTokenService(IOptions <ServiceApiSettings> serviceApiSettings, IOptions <ClientSettings> clientSettings, IClientAccessTokenCache clientAccessTokenCache, HttpClient httpClient) { _serviceApiSettings = serviceApiSettings.Value; _clientSettings = clientSettings.Value; _clientAccessTokenCache = clientAccessTokenCache; _httpClient = httpClient; }
/// <summary> /// ctor /// </summary> /// <param name="tokenEndpointService"></param> /// <param name="clientAccessTokenCache"></param> /// <param name="logger"></param> public ClientAccessTokenManagementService( ITokenEndpointService tokenEndpointService, IClientAccessTokenCache clientAccessTokenCache, ILogger <ClientAccessTokenManagementService> logger) { _tokenEndpointService = tokenEndpointService; _clientAccessTokenCache = clientAccessTokenCache; _logger = logger; }
/// <summary> /// ctor /// </summary> /// <param name="sync"></param> /// <param name="tokenEndpointService"></param> /// <param name="clientAccessTokenCache"></param> /// <param name="logger"></param> public ClientAccessTokenManagementService( IClientAccessTokenRequestSynchronization sync, ITokenEndpointService tokenEndpointService, IClientAccessTokenCache clientAccessTokenCache, ILogger <ClientAccessTokenManagementService> logger) { _sync = sync; _tokenEndpointService = tokenEndpointService; _clientAccessTokenCache = clientAccessTokenCache; _logger = logger; }
public PrivateKeyJwtTokenHandler(ILogger <PrivateKeyJwtTokenHandler> logger, IPrivateKeyJwtGenerator tokenGenerator, IHttpClientFactory httpClientFactory, IDiscoveryCache discoveryCache, IClientAccessTokenCache clientAccessTokenCache) { _logger = logger; _tokenGenerator = tokenGenerator; _httpClientFactory = httpClientFactory; _discoveryCache = discoveryCache; _clientAccessTokenCache = clientAccessTokenCache; }
/// <summary> /// ctor /// </summary> /// <param name="userTokenStore"></param> /// <param name="clock"></param> /// <param name="options"></param> /// <param name="tokenEndpointService"></param> /// <param name="clientAccessTokenCache"></param> /// <param name="logger"></param> public AccessTokenManagementService( IUserTokenStore userTokenStore, ISystemClock clock, IOptions <AccessTokenManagementOptions> options, ITokenEndpointService tokenEndpointService, IClientAccessTokenCache clientAccessTokenCache, ILogger <AccessTokenManagementService> logger) { _userTokenStore = userTokenStore; _clock = clock; _options = options.Value; _tokenEndpointService = tokenEndpointService; _clientAccessTokenCache = clientAccessTokenCache; _logger = logger; }
public TokenService( HttpClient httpClient, IHttpContextAccessor httpContextAccessor, IMapper mapper, ILogger <TokenService> logger, IClientSettings clientSettings, IClientAccessTokenCache clientAccessTokenCache) { client = httpClient; this.httpContextAccessor = httpContextAccessor; this.mapper = mapper; this.logger = logger; this.clientSettings = clientSettings; this.clientAccessTokenCache = clientAccessTokenCache; }
/// <summary> /// ctor /// </summary> /// <param name="userTokenStore"></param> /// <param name="clock"></param> /// <param name="options"></param> /// <param name="tokenEndpointService"></param> /// <param name="clientAccessTokenCache"></param> /// <param name="passwordAccessTokenCache"></param> /// <param name="httpContextAccessor"></param> /// <param name="logger"></param> public AccessTokenManagementService( IUserTokenStore userTokenStore, ISystemClock clock, IOptions <AccessTokenManagementOptions> options, ITokenEndpointService tokenEndpointService, IClientAccessTokenCache clientAccessTokenCache, IPasswordAccessTokenCache passwordAccessTokenCache, IHttpContextAccessor httpContextAccessor, ILogger <AccessTokenManagementService> logger) { _userTokenStore = userTokenStore; _clock = clock; _options = options.Value; _tokenEndpointService = tokenEndpointService; _clientAccessTokenCache = clientAccessTokenCache; _passwordAccessTokenCache = passwordAccessTokenCache; _httpContextAccessor = httpContextAccessor; _logger = logger; }
public TokenExchangeService(IHttpClientFactory httpClientFactory, IClientAccessTokenCache clientAccessTokenCache) { _clientAccessTokenCache = clientAccessTokenCache; _httpClientFactory = httpClientFactory; }
public TokenExchangeService(IHttpClientFactory httpClientFactory, IConfiguration config, IClientAccessTokenCache clientAccessTokenCache) { _httpClientFactory = httpClientFactory; _config = config; _clientAccessTokenCache = clientAccessTokenCache; }
public TokenExchangeDelegatingHandler(IHttpClientFactory httpClientFactory, IClientAccessTokenCache clientAccessTokenCache) { _clientAccessTokenCache = clientAccessTokenCache; _httpClientFactory = httpClientFactory; }
public TokenExchangeDelegatingHandler(IHttpClientFactory httpClientFactory, IConfiguration config, IClientAccessTokenCache clientAccessTokenCache) { _httpClientFactory = httpClientFactory; _config = config; _clientAccessTokenCache = clientAccessTokenCache; }