public static IAppBuilder UseHmacAuthentication(this IAppBuilder app, HmacAuthenticationOptions options) { if (app == null) { throw new ArgumentNullException("app"); } app.Use <HmacAuthenticationMiddleware>(options); app.UseStageMarker(PipelineStage.Authenticate); return(app); }
public static IAppBuilder UseHmacAuthentication(this IAppBuilder app, HmacAuthenticationOptions options) { if (app == null) { throw new ArgumentNullException("app"); } app.Use<HmacAuthenticationMiddleware>(options); app.UseStageMarker(PipelineStage.Authenticate); return app; }