feat: Attribut zur API-Schlüssel-Authentifizierung hinzufügen
- ApiKeyAuthAttribute hinzugefügt und mit ApiKeyAuthFilter verknüpft. - Dieses Attribut wird verwendet, um die API-Schlüssel-Überprüfung in Controllern anzuwenden.
This commit is contained in:
parent
1ca336abe0
commit
b460de4e37
13
WorkFlow.API/Attributes/ApiKeyAuthAttribute.cs
Normal file
13
WorkFlow.API/Attributes/ApiKeyAuthAttribute.cs
Normal file
@ -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))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user