ApiKeyAuthenticationOptions.ValidateKeyAsync property

Called to validate the raw key string. Return true if valid.

This is called for every request, so it should be fast.

public Func<HttpContext, string, byte[], Task<bool>> ValidateKeyAsync { get; set; }

See Also