AuthenticationScheme
The provider is registered lazily when the scheme is first used by authenticateWith. Reusing the same provider object, including through mapPrincipal or orAnonymous, reuses the existing application registration. Creating a different provider with the same name fails fast because provider names are application-wide identifiers.
Type Parameters
the principal type produced by this scheme.
the intrinsic extension context supplied to authenticated routes.
Properties
default failure handler for routes that use the scheme. A route-level handler passed to authenticateWith overrides this value.
Functions
fun <S : Any> SessionAuthenticationScheme<S, *>.applyTransport()
Applies this scheme's configured TypedSessionAuthConfig.transport to a SessionsConfig.
fun <S : Any, P : Any> SessionAuthenticationScheme<S, P>.clearSession()
Clears a session for this scheme.
Returns a scheme that accepts anonymous requests when no credentials are provided.
fun <S : Any, P : Any> SessionAuthenticationScheme<S, P>.setSession(value: S)
Sets a session value for this scheme.