TypedApiKeyAuthConfig

Configures a typed API key authentication scheme with principal type P.

Report a problem

Properties

Link copied to clipboard

Human-readable description of this authentication scheme.

Link copied to clipboard

Header name used to read the API key.

Link copied to clipboard

Default handler for authentication failures.

Functions

Link copied to clipboard
fun validate(body: suspend ApplicationCall.(String) -> P?)

Sets a validation function for the API key string read from headerName.