ApiKeyAuthenticationOptions.StaticApiKey property

Single expected API key (used if ValidateKey is not set).

Defaults to null.

Use this for simple scenarios where you have a known key.

public string? StaticApiKey { get; set; }

See Also