Configuration

Configuration for API Key authentication.

Report a problem

Parameters

name

optional name for this authentication provider.

description

optional description for this authentication provider.

Properties

Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
val name: String?

Functions

Link copied to clipboard

A response to send back if authentication failed.

Link copied to clipboard
fun skipWhen(predicate: (ApplicationCall) -> Boolean)
Link copied to clipboard

Sets a validation function that will check the given API key retrieved from the headerName header and return an arbitrary principal object (for example, a user or service identity) if authentication succeeds, or null if authentication fails.