Exemple #1
0
 public JwtSecurityContextFactory(
     ICallContextFactory callContextFactory, ILoopbackIpFilter loopbackIpFilter, IJwtTokenReader jwtTokenReader)
 {
     _callContextFactory = callContextFactory.ThrowIfNull(nameof(callContextFactory));
     _loopbackIpFilter   = loopbackIpFilter.ThrowIfNull(nameof(loopbackIpFilter));
     _jwtTokenReader     = jwtTokenReader.ThrowIfNull(nameof(jwtTokenReader));
 }
Exemple #2
0
 public NtlmSecurityContextFactory(IHttpContextAccessor httpContextAccessor,
                                   IHttpClientFactory httpClientFactory,
                                   ILoopbackIpFilter loopbackIpFilter)
 {
     _httpContextAccessor = httpContextAccessor.ThrowIfNull(nameof(httpContextAccessor));
     _httpClientFactory   = httpClientFactory.ThrowIfNull(nameof(httpClientFactory));
     _loopbackIpFilter    = loopbackIpFilter.ThrowIfNull(nameof(loopbackIpFilter));
 }
 public JwtSecurityContextFactory(IHttpContextAccessor httpContextAccessor,
                                  ILoopbackIpFilter loopbackIpFilter)
 {
     _httpContextAccessor = httpContextAccessor.ThrowIfNull(nameof(httpContextAccessor));
     _loopbackIpFilter    = loopbackIpFilter.ThrowIfNull(nameof(loopbackIpFilter));
 }