protected override AuthenticationHandler <HmacAuthenticationOptions> CreateHandler() { return(new HmacAuthenticationHandler(HmacAuthenticationService.Create(Options.Hmac))); }
private static void RegisterServices(this IServiceCollection services, HmacOptions options) { services.AddSingleton <IHmacAuthenticationService>(HmacAuthenticationService.Create(options)); }
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; }