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.
- 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.
- 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.
- 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.
- invalidScope → const AuthRequestError
The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.
- invalidToken → const AuthRequestError
Indicates that the token is invalid.
This particular error reason is not part of the OAuth 2.0 spec.
- serverError → const AuthRequestError
The server encountered an error during processing the request.
The server is temporarily unable to fulfill the request.
The authenticated client is not authorized to use this authorization grant type.
- unsupportedGrantType → const AuthRequestError
The authorization grant type is not supported by the authorization server.
- unsupportedResponseType → const AuthRequestError
The authorization server does not support obtaining an authorization code using this method.
→ const List<
A constant List of the values in this enum, in order of their declaration.
- index → int
The integer index of this enum.final
- hashCode → int
The hash code for this object.
- runtimeType → Type
A representation of the runtime type of the object.
) → String
- Returns a string representation of this object.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
dynamic other) → bool
The equality operator.