OidcSessionsConfig

Configuration for OIDC session transport and CSRF protection.

Controls how the OpenID Connect session is stored and transported between client and server, and whether CSRF protection is applied to routes authenticated with the enclosing provider.

By default, sessions use cookie transport with secure defaults and CSRF protection is enabled with CSRFConfig.originMatchesHost.

Configure via OidcOAuthConfig.sessions.

Report a problem

Properties

Link copied to clipboard
var name: String?

Cookie / session name.

Link copied to clipboard

Server-side session storage. Defaults to in-memory storage.

Link copied to clipboard

Strategy used to refresh session token.

Functions

Link copied to clipboard

Configures cookie attributes for the session cookie.

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

Configures CSRF protection for routes authenticated with this provider's typed session capability.

Link copied to clipboard

Disables CSRF protection for this provider's routes.