TypedSessionAuthConfig

Configures a typed Session authentication scheme with principal type P and session type S.

Report a problem

Inheritors

Properties

Link copied to clipboard

Human-readable description of this authentication scheme.

Link copied to clipboard

Default handler for authentication failures.

Link copied to clipboard

Configures how the typed session scheme installs the Sessions plugin.

Functions

Link copied to clipboard
fun csrfProtection(config: CSRFConfig.() -> Unit)

Configures CSRF protection for routes authenticated with this session scheme.

Link copied to clipboard

Transforms the session value before validate resolves the route principal.

Link copied to clipboard

Sets a validation function for the session value.