Configuration

Api key auth configuration.

Properties

Link copied to clipboard

Name of the scheme used when challenge fails, see AuthenticationContext.challenge.

Link copied to clipboard

Name of the header that will be used as a source for the api key.

Functions

Link copied to clipboard

A response to send back if authentication failed.

Link copied to clipboard
fun validate(body: suspend <Error class: unknown class>.(String) -> <Error class: unknown class>?)

Sets a validation function that will check given API key retrieved from headerName instance and return Principal, or null if credential does not correspond to an authenticated principal.