ApiKeyAuthenticationProvider

class ApiKeyAuthenticationProvider : AuthenticationProvider(source)

Represents an API Key authentication provider.

This provider extracts an API key from a specified header and validates it using the configured authentication function.

Report a problem

Parameters

configuration

the configuration for this authentication provider.

Types

Link copied to clipboard
class Configuration : AuthenticationProvider.Config

Configuration for API Key authentication.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val name: String?
Link copied to clipboard
val skipWhen: List<ApplicationCallPredicate>

Functions

Link copied to clipboard
open suspend override fun onAuthenticate(context: AuthenticationContext)