示例#1
0
 public HmacMiddleware(
     RequestDelegate next,
     IHmacAuthenticationService authenticationService,
     ILoggerFactory loggerFactory)
 {
     this.next = next;
     this.authenticationService = authenticationService;
     this.loggerFactory         = loggerFactory;
 }
 public HmacAuthenticationHandler(
     IOptionsMonitor <AuthenticationSchemeOptions> options,
     ILoggerFactory logger,
     UrlEncoder encoder,
     ISystemClock clock,
     IHmacAuthenticationService authenticationService)
     : base(options, logger, encoder, clock)
 {
     this.authenticationService = authenticationService;
 }
 public HmacAuthenticationHandler(IHmacAuthenticationService authenticationService)
 {
     this.authenticationService = authenticationService;
 }
示例#4
0
 public HmacMiddleware(OwinMiddleware next, HmacOptions middlewareOptions)
     : base(next)
 {
     authenticationService = HmacAuthenticationService.Create(middlewareOptions);
 }
 public HmacServerHandler(HmacOptions options, bool mixedMode = false)
 {
     authenticationService = HmacAuthenticationService.Create(options);
     this.mixedMode        = mixedMode;
 }