ktor-auth / io.ktor.auth / AuthenticationContext / challenge

challenge

val challenge: AuthenticationProcedureChallenge

Gets an AuthenticationProcedureChallenge for this context

fun challenge(key: Any, cause: AuthenticationFailedCause, function: <ERROR CLASS><AuthenticationProcedureChallenge, ApplicationCall>): Unit

Requests a challenge to be sent to the client if none of mechanisms can authenticate a user