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:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user