SessionConcurrencyDsl

A Kotlin DSL to configure the behaviour of multiple sessions using idiomatic Kotlin code.

Author

Eleftheria Stein

Since

5.3

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var expiredSessionStrategy: SessionInformationExpiredStrategy?

determines the behaviour when an expired session is detected.

Link copied to clipboard

the URL to redirect to if a user tries to access a resource and their session has been expired due to too many sessions for the current user.

Link copied to clipboard

controls the maximum number of sessions for a user.

Link copied to clipboard

if true, prevents a user from authenticating when the maximumSessions has been reached. Otherwise (default), the user who authenticates is allowed access and an existing user's session is expired.

Link copied to clipboard
var sessionRegistry: SessionRegistry?

the SessionRegistry implementation used.

Functions

Link copied to clipboard
fun maximumSessions(max: SessionLimit)