BearerAuthenticationProvider

Types

Link copied to clipboard
class Config(name: String?, description: String? = null) : AuthenticationProvider.Config

A configuration for the bearer authentication provider.

Properties

Link copied to clipboard

A description of the provider that can be used for API documentation.

Link copied to clipboard
val name: String?

A provider name or null for a default provider.

Link copied to clipboard

Authentication filters specifying if authentication is required for a particular ApplicationCall.

Functions

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

Authenticates a request based on AuthenticationContext. Implementations should either add a new AuthenticationContext.principal for successful authentication or register AuthenticationContext.challenge for failed ones.