AuthenticationProvider

abstract class AuthenticationProvider(config: AuthenticationProvider.Config)

An authentication provider with the specified name.

Constructors

Link copied to clipboard
fun AuthenticationProvider(config: AuthenticationProvider.Config)

Types

Link copied to clipboard
open class Config

Serves as the base class for authentication providers.

Functions

Link copied to clipboard
abstract suspend 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.

Properties

Link copied to clipboard
val name: String?

A provider name or null for a default provider.

Link copied to clipboard
val skipWhen: List<ApplicationCallPredicate>

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

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard