From abcec0ae10588c50170c59126ad8f9ec15d67d8f Mon Sep 17 00:00:00 2001 From: ig Date: Tue, 21 Mar 2023 11:56:34 +0100 Subject: [PATCH] remove HeaderFilter.cs, no longer needed --- csharp/App/Backend/HeaderFilter.cs | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 csharp/App/Backend/HeaderFilter.cs diff --git a/csharp/App/Backend/HeaderFilter.cs b/csharp/App/Backend/HeaderFilter.cs deleted file mode 100644 index f3520b75e..000000000 --- a/csharp/App/Backend/HeaderFilter.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.OpenApi.Models; -using Swashbuckle.AspNetCore.SwaggerGen; - -namespace InnovEnergy.App.Backend; - -/// -/// This is for convenient testing! Todo throw me out? -/// Operation filter to add the requirement of the custom header -/// -public class HeaderFilter : IOperationFilter -{ - public void Apply(OpenApiOperation operation, OperationFilterContext context) - { - operation.Parameters ??= new List(); - - operation.Parameters.Add(new OpenApiParameter - { - Name = "auth", - In = ParameterLocation.Header, - Content = new Dictionary(), - Required = false - }); - } -} \ No newline at end of file