SessionAuthenticationProvider

class SessionAuthenticationProvider<T : Any> : AuthenticationProvider

A session-based Authentication provider.

See also

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Config<T : Any> : AuthenticationProvider.Config

A configuration for the session authentication provider.

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.

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.

Link copied to clipboard
val type: KClass<T>

of session