authentication

fun <ERROR CLASS>.authentication(block: AuthenticationConfig.() -> Unit)

Installs the Authentication plugin if not yet installed and invokes block on its config. You can modify the existing authentication configuration only in the authentication's block or using the Authentication.configure function. Changing captured instance of configuration outside of block may have no effect or damage application's state.


val <ERROR CLASS>.authentication: AuthenticationContext

Retrieves an AuthenticationContext for this call.