DVSessionAuthenticationResult class

What the session stage made of a request.

Constructors

DVSessionAuthenticationResult.authenticated(DVSessionPrincipal principal)
const
DVSessionAuthenticationResult.refused(int status, String message, {String? challenge, String? clearCookie})
const

Properties

challenge → String?
The WWW-Authenticate value, for a 401.
final
clearCookie → String?
A Set-Cookie value removing the session cookie, when the refused session came from it -- an HttpOnly cookie is one the page cannot clear, so without this a browser would present it, and be refused, on every request including the sign-in that would replace it.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String?
The fixed text of the refusal. Nothing from the request is in it.
final
principal → DVSessionPrincipal?
final
refused → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int?
The status to answer with, when the request is refused.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

none → const DVSessionAuthenticationResult
The request presented no session: it is someone else's to judge.