From 14fd3483b43abfd0933e45b57984e8b0c4db4e64 Mon Sep 17 00:00:00 2001 From: nagarwal4 <107046041+nagarwal4@users.noreply.github.com> Date: Tue, 19 Dec 2023 11:21:55 +0100 Subject: [PATCH] Update error response --- .../ResponseHandling/SignatureVerificationMiddleware.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/core/src/Core.API/ResponseHandling/SignatureVerificationMiddleware.cs b/backend/core/src/Core.API/ResponseHandling/SignatureVerificationMiddleware.cs index a39b88d..7745fcd 100644 --- a/backend/core/src/Core.API/ResponseHandling/SignatureVerificationMiddleware.cs +++ b/backend/core/src/Core.API/ResponseHandling/SignatureVerificationMiddleware.cs @@ -130,8 +130,8 @@ public async Task Invoke(HttpContext context) } else { - _logger.LogError("Invalid signature"); - var customErrors = new CustomErrors(new CustomError("Forbidden", "Invalid signature", "x-signature")); + _logger.LogError("Timestamp outdated"); + var customErrors = new CustomErrors(new CustomError("Forbidden", "Invalid timestamp", "timestamp")); await WriteCustomErrors(context.Response, customErrors, (int)HttpStatusCode.Forbidden); } } @@ -183,4 +183,4 @@ public static void ConfigureSignatureVerificationMiddleware(this IApplicationBui app.UseMiddleware(); } } -} \ No newline at end of file +}