From 0f47a98ad9aa4175b85199bff1dc7eacd52085ba Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Thu, 31 Oct 2024 04:07:35 +0300 Subject: [PATCH] feat: return security exception --- .../Core/Middleware/CustomExceptionHandlerMiddleware.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Endpoint/Configuration/Core/Middleware/CustomExceptionHandlerMiddleware.cs b/Endpoint/Configuration/Core/Middleware/CustomExceptionHandlerMiddleware.cs index ef6756c..d5aff77 100644 --- a/Endpoint/Configuration/Core/Middleware/CustomExceptionHandlerMiddleware.cs +++ b/Endpoint/Configuration/Core/Middleware/CustomExceptionHandlerMiddleware.cs @@ -5,6 +5,7 @@ using Mirea.Api.DataAccess.Application.Common.Exceptions; using Mirea.Api.Dto.Responses; using Mirea.Api.Endpoint.Common.Exceptions; using System; +using System.Security; using System.Text.Json; using System.Threading.Tasks; @@ -44,6 +45,9 @@ public class CustomExceptionHandlerMiddleware(RequestDelegate next, ILogger