- isValidKey-Eintrag wird löschbar gemacht. - wenn der Schlüssel null ist und der X-API-Schlüssel nicht existiert, wird die Anfrage authirezred.
11 lines
263 B
C#
11 lines
263 B
C#
namespace WorkFlow.API.Models
|
|
{
|
|
public class APIKeyAuthOptions
|
|
{
|
|
public string? Key { get; init; } = null;
|
|
|
|
public string HeaderName { get; init; } = "X-API-Key";
|
|
|
|
public string? SwaggerDescription { get; init; } = null;
|
|
}
|
|
} |