public static IApplicationBuilder UseSignatureValidation(this IApplicationBuilder builder, Action <RequestSignatureOptions> configure)
        {
            var options = new RequestSignatureOptions
            {
                MaxAllowedTimeSeconds = 60,
                Keys = new Dictionary <string, byte[]>(),
            };

            configure(options);
            return(builder.UseMiddleware <RequestSignatureValidator>(options));
        }
 public RequestSignatureValidator(RequestDelegate next, RequestSignatureOptions options, ILogger <RequestSignatureValidator> logger)
 {
     _next    = next;
     _options = options;
     _logger  = logger;
 }