SessionAuthenticator

Implements session-based authentication by delegating to a SessionManager.

On each request, calls SessionManager.validate to resolve the current session details:

sessionManager is a required composition dependency: it fully owns how sessions are created, validated, and destroyed. The authenticator itself is storage-agnostic.

Construct via session { }, Builder, or of.

Types

Link copied to clipboard
class Builder(sessionManager: SessionManager)

Fluent builder for constructing a SessionAuthenticator.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The SessionManager this authenticator delegates to. Required.

Functions

Link copied to clipboard
open override fun authenticate(context: Context): AuthenticationResult