feat(APIKeyAuthOptions): Datenmodell zur Konfiguration der Autorisierung mit API-Schlüssel erstellt.
- DI-Erweiterung hinzugefügt
This commit is contained in:
9
WorkFlow.API/Models/APIKeyAuthOptions.cs
Normal file
9
WorkFlow.API/Models/APIKeyAuthOptions.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace WorkFlow.API.Models
|
||||
{
|
||||
public class APIKeyAuthOptions
|
||||
{
|
||||
public required string Key { get; init; }
|
||||
|
||||
public string HeaderName { get; init; } = "X-API-Key";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user