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 +}