Configuration
Authentication configuration
Constructors
Functions
Extensions
Link copied to clipboard
fun Authentication.Configuration.basic(name: String? = null, configure: BasicAuthenticationProvider.Configuration.() -> Unit)
Content copied to clipboard
Installs Basic Authentication mechanism
Link copied to clipboard
fun Authentication.Configuration.digest(name: String? = null, configure: DigestAuthenticationProvider.Configuration.() -> Unit)
Content copied to clipboard
Installs Digest Authentication mechanism
Link copied to clipboard
fun Authentication.Configuration.form(name: String? = null, configure: FormAuthenticationProvider.Configuration.() -> Unit)
Content copied to clipboard
Installs Form Authentication mechanism
Link copied to clipboard
fun Authentication.Configuration.oauth(name: String? = null, configure: OAuthAuthenticationProvider.Configuration.() -> Unit)
Content copied to clipboard
Installs OAuth Authentication mechanism
Link copied to clipboard
Content copied to clipboard
inline fun <T : Principal> Authentication.Configuration.session(name: String? = null)
Content copied to clipboard
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)
Content copied to clipboard
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