SessionTransportType

Configures how the authentication scheme transports session data.

Report a problem

Type Parameters

S

the stored session type.

Inheritors

Types

Link copied to clipboard
class Cookie<S : Any>(val block: CookieSessionBuilder<S>.() -> Unit = {}) : SessionTransportType<S>

Passes the serialized session in a cookie.

Link copied to clipboard
class CookieId<S : Any>(val storage: SessionStorage, val block: CookieIdSessionBuilder<S>.() -> Unit = {}) : SessionTransportType<S>

Passes a session identifier in a cookie and stores session data on the server.

Link copied to clipboard
class Header<S : Any>(val block: HeaderSessionBuilder<S>.() -> Unit = {}) : SessionTransportType<S>

Passes the serialized session in a header.

Link copied to clipboard
class HeaderId<S : Any>(val storage: SessionStorage, val block: HeaderIdSessionBuilder<S>.() -> Unit = {}) : SessionTransportType<S>

Passes a session identifier in a header and stores session data on the server.