public ClockSkewSystemTests(ITestOutputHelper output)
 {
     _output               = output;
     _serviceProvider      = new ServiceCollection().Configure(ConfigureServices).BuildServiceProvider();
     _requestSignerFactory = _serviceProvider.GetRequiredService <IRequestSignerFactory>();
     _verifier             = _serviceProvider.GetRequiredService <IRequestSignatureVerifier>();
     _options              = new SignedRequestAuthenticationOptions();
 }
Example #2
0
 public NonceSystemTests()
 {
     _serviceProvider       = new ServiceCollection().Configure(ConfigureServices).BuildServiceProvider();
     _requestSignerFactory  = _serviceProvider.GetRequiredService <IRequestSignerFactory>();
     _verifier              = _serviceProvider.GetRequiredService <IRequestSignatureVerifier>();
     _nonceEnabled          = true;
     _authenticationOptions = new SignedRequestAuthenticationOptions();
 }
Example #3
0
 public SupportsOptionalCreatedAndExpiresHeaders(ITestOutputHelper output)
 {
     _output               = output;
     _serviceProvider      = new ServiceCollection().Configure(ConfigureServices).BuildServiceProvider();
     _requestSignerFactory = _serviceProvider.GetRequiredService <IRequestSignerFactory>();
     _verifier             = _serviceProvider.GetRequiredService <IRequestSignatureVerifier>();
     _options              = new SignedRequestAuthenticationOptions();
 }
 public RequestTargetEscapingSetting(ITestOutputHelper output)
 {
     _output = output;
     _authenticationOptions = new SignedRequestAuthenticationOptions();
 }