/// <summary>
 /// Initializes a new instance of the <see cref="SignatureHandler"/> class.
 /// </summary>
 /// <param name="validator">Used to validate signatures.</param>
 /// <param name="options">The signature options.</param>
 /// <param name="logger">A factory used to create logger instances.</param>
 /// <param name="encoder">A URL encoder.</param>
 /// <param name="clock">Used to get the current time.</param>
 public SignatureHandler(HttpSignatureValidator validator,
                         IOptionsMonitor <SignatureHandlerOptions> options,
                         ILoggerFactory logger,
                         System.Text.Encodings.Web.UrlEncoder encoder,
                         Microsoft.AspNetCore.Authentication.ISystemClock clock)
     : base(options, logger, encoder, clock)
 {
     Validator = validator;
 }
示例#2
0
 public BasicAuthenticationHandler(
     IOptionsMonitor <AuthenticationSchemeOptions> options,
     ILoggerFactory logger,
     UrlEncoder encoder,
     Microsoft.AspNetCore.Authentication.ISystemClock clock,
     IUserService userService)
     : base(options, logger, encoder, clock)
 {
     _userService = userService;
 }
示例#3
0
 public NothingHandler(IOptionsMonitor <NothingOptions> options, ILoggerFactory logger, UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock) : base(options, logger, encoder, clock)
 {
 }
示例#4
0
 public ImpersonationAuthenticationHandler(IOptionsMonitor <ImpersonationBearerOptions> options,
                                           ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock) : base(options, logger, encoder, clock)
 {
 }
示例#5
0
 public SignedRequestAuthenticationHandlerForTests(IOptionsMonitor <SignedRequestAuthenticationOptions> options, UrlEncoder encoder,
                                                   Microsoft.AspNetCore.Authentication.ISystemClock clock, IRequestSignatureVerifier requestSignatureVerifier, ILoggerFactory logger = null) : base(options, encoder, clock, requestSignatureVerifier, logger)
 {
 }