ErrorResponse class

Represents an OAuth2 authentication error.

Constructors

ErrorResponse(String code, String description, String? state, {Uri? uri})
const

Properties

code String
A short string representing the error.
final
description String
A relatively detailed description of the source of the error.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
The exact value received from the client, if a "state" parameter was present in the client authorization request.
final
uri Uri?
An optional Uri directing users to more information about the error.
final

Methods

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

Operators

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

Constants

accessDenied → const String
The resource owner or authorization server denied the request.
authorizationPending → const String
The authorization request is still pending as the end user hasn't yet completed the user interaction steps (Section 3.3). The client SHOULD repeat the Access Token Request to the token endpoint (a process known as polling). Before each request the client MUST wait at least the number of seconds specified by the "interval" parameter of the Device Authorization Response (see Section 3.2), or 5 seconds if none was provided, and respect any increase in the polling interval required by the "slow_down" error.
expiredToken → const String
The "device_code" has expired and the device flow authorization session has concluded. The client MAY commence a Device Authorization Request but SHOULD wait for user interaction before restarting to avoid unnecessary polling.
invalidGrant → const String
The code_verifier given by the client does not match the expected value.
invalidRequest → const String
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.
invalidScope → const String
The requested scope is invalid, unknown, or malformed.
serverError → const String
The authorization server encountered an unexpected condition that prevented it from fulfilling the request.
slowDown → const String
A variant of "authorization_pending", the authorization request is still pending and polling should continue, but the interval MUST be increased by 5 seconds for this and all subsequent requests.
temporarilyUnavailable → const String
The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
unauthorizedClient → const String
The client is not authorized to request an authorization code using this method.
unsupportedResponseType → const String
The authorization server does not support obtaining an authorization code using this method.