SessionAuthChallenge

sealed class SessionAuthChallenge<in T : Any>

Specifies what to send back if form authentication fails.

Types

Ignore

object Ignore : SessionAuthChallenge<Any>

Does nothing so other authentication methods could provide their challenges. This is the default and recommended way

Redirect

class Redirect<in T : Any> : SessionAuthChallenge<T>

Redirect to an URL provided by the given function.

Unauthorized

object Unauthorized : SessionAuthChallenge<Any>

Respond with HttpStatusCode.Unauthorized.

Companion Object Properties

Default

The default session auth challenge kind

Inheritors

Ignore

object Ignore : SessionAuthChallenge<Any>

Does nothing so other authentication methods could provide their challenges. This is the default and recommended way

Redirect

class Redirect<in T : Any> : SessionAuthChallenge<T>

Redirect to an URL provided by the given function.

Unauthorized

object Unauthorized : SessionAuthChallenge<Any>

Respond with HttpStatusCode.Unauthorized.