AuthRequestError enum

The possible errors as defined by the OAuth 2.0 specification.

Auth endpoints will use this list of values to determine the response sent back to a client upon a failed request.


accessDenied → const AuthRequestError

The resource owner or authorization server denied the request.

const AuthRequestError(7)
invalidClient → const AuthRequestError

The client was invalid...

Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). The authorization server MAY return an HTTP 401 (Unauthorized) status code to indicate which HTTP authentication schemes are supported. If the client attempted to authenticate via the "Authorization" request header field, the authorization server MUST respond with an HTTP 401 (Unauthorized) status code and include the "WWW-Authenticate" response header field matching the authentication scheme used by the client.

const AuthRequestError(1)
invalidGrant → const AuthRequestError

The grant was invalid...

The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.

const AuthRequestError(2)
invalidRequest → const AuthRequestError

The request was invalid...

The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.

const AuthRequestError(0)
invalidScope → const AuthRequestError

The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.

const AuthRequestError(3)
invalidToken → const AuthRequestError

Indicates that the token is invalid.

This particular error reason is not part of the OAuth 2.0 spec.

const AuthRequestError(10)
serverError → const AuthRequestError

The server encountered an error during processing the request.

const AuthRequestError(8)
temporarilyUnavailable → const AuthRequestError

The server is temporarily unable to fulfill the request.

const AuthRequestError(9)
unauthorizedClient → const AuthRequestError

The authenticated client is not authorized to use this authorization grant type.

const AuthRequestError(6)
unsupportedGrantType → const AuthRequestError

The authorization grant type is not supported by the authorization server.

const AuthRequestError(4)
unsupportedResponseType → const AuthRequestError

The authorization server does not support obtaining an authorization code using this method.

const AuthRequestError(5)
values → const List<AuthRequestError>

A constant List of the values in this enum, in order of their declaration.

const List<AuthRequestError>


index → int

The integer index of this enum.

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.


operator ==(dynamic other) → bool
The equality operator.