feat(APIKeyAuthOptions): Schlüsselattribut wird löschbar gemacht.

- isValidKey-Eintrag wird löschbar gemacht.
 - wenn der Schlüssel null ist und der X-API-Schlüssel nicht existiert, wird die Anfrage authirezred.
This commit is contained in:
Developer 02
2024-10-29 12:23:10 +01:00
parent 2c1abaaf32
commit cbdd6ee295
4 changed files with 8 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
{
public class APIKeyAuthOptions
{
public required string Key { get; init; }
public string? Key { get; init; } = null;
public string HeaderName { get; init; } = "X-API-Key";