ktor-auth / io.ktor.auth / SessionAuthenticationProvider / Configuration / challenge

challenge

var challenge: SessionAuthChallenge<T>
Deprecated: Use challenge {} instead.


fun challenge(block: SessionAuthChallengeFunction<T>): Unit
fun challenge(redirectUrl: String): Unit
fun challenge(redirect: Url): Unit

A response to send back if authentication failed