authentication

fun Application.authentication(block: Authentication.Configuration.() -> Unit)

Installs Authentication feature if not yet installed and invokes block on it's config. One is allowed to modify existing authentication configuration only in authentication's block or via Authentication.configure function. Changing captured instance of configuration outside of block may have no effect or damage application's state.


val ApplicationCall.authentication: AuthenticationContext

Retrieves an AuthenticationContext for this call