From b460de4e377e7e371d1213b4744211aa1daa9e4d Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 28 Oct 2024 16:48:58 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20Attribut=20zur=20API-Schl=C3=BCssel-Aut?= =?UTF-8?q?hentifizierung=20hinzuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ApiKeyAuthAttribute hinzugefügt und mit ApiKeyAuthFilter verknüpft. - Dieses Attribut wird verwendet, um die API-Schlüssel-Überprüfung in Controllern anzuwenden. --- WorkFlow.API/Attributes/ApiKeyAuthAttribute.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 WorkFlow.API/Attributes/ApiKeyAuthAttribute.cs diff --git a/WorkFlow.API/Attributes/ApiKeyAuthAttribute.cs b/WorkFlow.API/Attributes/ApiKeyAuthAttribute.cs new file mode 100644 index 0000000..fc7f7ac --- /dev/null +++ b/WorkFlow.API/Attributes/ApiKeyAuthAttribute.cs @@ -0,0 +1,13 @@ +using Microsoft.AspNetCore.Mvc; +using WorkFlow.API.Filters; + +namespace WorkFlow.API.Attributes +{ + public class ApiKeyAuthAttribute : ServiceFilterAttribute + { + public ApiKeyAuthAttribute() + : base(typeof(ApiKeyAuthFilter)) + { + } + } +} \ No newline at end of file