protected override AuthenticationHandler <HmacAuthenticationOptions> CreateHandler()
 {
     return(new HmacAuthenticationHandler(HmacAuthenticationService.Create(Options.Hmac)));
 }
Пример #2
0
 private static void RegisterServices(this IServiceCollection services, HmacOptions options)
 {
     services.AddSingleton <IHmacAuthenticationService>(HmacAuthenticationService.Create(options));
 }
Пример #3
0
 public HmacMiddleware(OwinMiddleware next, HmacOptions middlewareOptions)
     : base(next)
 {
     authenticationService = HmacAuthenticationService.Create(middlewareOptions);
 }
Пример #4
0
 public HmacServerHandler(HmacOptions options, bool mixedMode = false)
 {
     authenticationService = HmacAuthenticationService.Create(options);
     this.mixedMode        = mixedMode;
 }