ktor-auth / io.ktor.auth / FormAuthChallenge

FormAuthChallenge

sealed class FormAuthChallenge
Deprecated: Use challenge {} instead.

Specifies what to send back if form authentication fails.

Types

Redirect

class Redirect : FormAuthChallenge

Redirect to an URL provided by the given function.

Unauthorized

object Unauthorized : FormAuthChallenge

Respond with HttpStatusCode.Unauthorized.

Inheritors

Redirect

class Redirect : FormAuthChallenge

Redirect to an URL provided by the given function.

Unauthorized

object Unauthorized : FormAuthChallenge

Respond with HttpStatusCode.Unauthorized.