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(KestrunHost host,
AuthenticationCodeSettings settings)
| parameter | description |
|---|---|
| host | The Kestrun host instance. |
| settings | The settings containing the C# authentication code. |
Return Value
A delegate that validates an API key using C# code.
See Also
- class KestrunHost
- record AuthenticationCodeSettings
- class ApiKeyAuthHandler
- namespace Kestrun.Authentication