Retrieves an AuthenticationContext for this call

fun Application.authentication(
    block: Configuration.() -> Unit
): 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.