ApiKeyAuthHandler.BuildCsValidator method
Builds a C#-based API key validator delegate using the provided authentication code settings.
public static Func<HttpContext, string, byte[], Task<bool>> BuildCsValidator(
AuthenticationCodeSettings settings, ILogger logger)
parameter | description |
---|---|
settings | The settings containing the C# authentication code. |
logger | The logger to use for debug output. |
Return Value
A delegate that validates an API key using C# code.
See Also
- record AuthenticationCodeSettings
- class ApiKeyAuthHandler
- namespace Kestrun.Authentication