session

inline fun <T : Principal> Authentication.Configuration.session(name: String? = null, challenge: SessionAuthChallenge<T>)
inline fun <T : Principal> Authentication.Configuration.session(name: String? = null)

Provides ability to authenticate users via sessions. It only works if T session type denotes Principal as well otherwise use full session with lambda function with SessionAuthenticationProvider.Configuration.validate configuration


inline fun <T : Any> Authentication.Configuration.session(name: String? = null, configure: SessionAuthenticationProvider.Configuration<T>.() -> Unit)

Provides ability to authenticate users via sessions. It is important to have specified SessionAuthenticationProvider.Configuration.validate and SessionAuthenticationProvider.Configuration.challenge in the lambda to get it work property