inline fun <reified T : Principal> Configuration.session(name: String? = null, challenge: SessionAuthChallenge<T>): Unit
inline fun <reified T : Principal> Configuration.session(name: String? = null): Unit
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 <reified T : Any> Configuration.session(name: String? = null, configure: Configuration<T>.() -> Unit): 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