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.

Constants

accessDenied AuthRequestError

The resource owner or authorization server denied the request.

const AuthRequestError(7)
invalidClient 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 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 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 AuthRequestError

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

const AuthRequestError(3)
invalidToken AuthRequestError

Indicates that the token is invalid.

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

const AuthRequestError(10)
serverError AuthRequestError

The server encountered an error during processing the request.

const AuthRequestError(8)
temporarilyUnavailable AuthRequestError

The server is temporarily unable to fulfill the request.

const AuthRequestError(9)
unauthorizedClient AuthRequestError

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

const AuthRequestError(6)
unsupportedGrantType AuthRequestError

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

const AuthRequestError(4)
unsupportedResponseType AuthRequestError

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

const AuthRequestError(5)
values → List<AuthRequestError>

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

const List<AuthRequestError>

Properties

index → int
final
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

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited