public enum ErrorCode extends Enum<ErrorCode>
error from OAuth 2.0 endpoints.
Some error codes are not used by Authlete. For example, because
Authlete supports the request parameter and the request_uri parameter, request_not_supported and request_uri_not_supported are not used.
| Enum Constant and Description |
|---|
access_denied
The resource owner or authorization server denied the
request.
|
account_selection_required
The End-User is REQUIRED to select a session at the
Authorization Server.
|
authorization_pending
The authorization request is still pending as the end-user hasn't yet
been authenticated.
|
consent_required
The Authorization Server requires End-User consent.
|
expired_login_hint_token
The provided
login_hint_token has expired. |
expired_token
The token has expired.
|
insufficient_scope
The request requires higher privileges than provided by the
access token.
|
interaction_required
The Authorization Server requires End-User interaction of
some form to proceed.
|
invalid_binding_message
The binding message is invalid or unacceptable for use in the context
of the given request.
|
invalid_client
Client authentication failed (e.g., unknown client, no
client authentication included, or unsupported
authentication method).
|
invalid_client_metadata
The value of one of the client metadata fields is invalid and the
server has rejected the client registration request.
|
invalid_grant
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.
|
invalid_redirect_uri
The value of one or more redirect URIs is invalid.
|
invalid_request
The request is missing a required parameter, includes an
invalid parameter value, includes a parameter more than
once, or is otherwise malformed.
|
invalid_request_object
The
request parameter contains an invalid Request Object. |
invalid_request_uri
The
request_uri in the Authorization Request
returns an error or contains invalid data. |
invalid_scope
The requested scope is invalid, unknown, or malformed.
|
invalid_software_statement
The software statement presented is invalid.
|
invalid_token
The access token provided is expired, revoked, malformed, or
invalid for other reasons.
|
invalid_user_code
The provided user code is invalid.
|
login_required
The Authorization Server requires End-User authentication.
|
missing_user_code
A user code is not included in the backchannel authentication request.
|
registration_not_supported
The OP does not support use of the
registration
parameter defined in Section 7.2.1. |
request_not_supported
The OP does not support use of the
request parameter
defined in Section 6. |
request_uri_not_supported
The OP does not support use of the
request_uri parameter
defined in Section 6. |
server_error
The authorization server encountered an unexpected
condition that prevented it from fulfilling the request.
|
slow_down
A variant of
authorization_pending, the authorization request
is still pending and polling should continue, but the interval should
be increased. |
temporarily_unavailable
The authorization server is currently unable to handle
the request due to a temporary overloading or maintenance
of the server.
|
transaction_failed
The OpenID Provider encountered an unexpected condition that prevented
it from successfully completing the transaction.
|
unapproved_software_statement
The software statement presented is not approved for use by this
authorization server.
|
unauthorized_client
The client is not authorized to request an authorization
code or an access token using this method.
|
unknown_user_id
The OpenID provider is not able to identify which end-user the client
wished to be authenticated by means of the hint provided in the
request (
login_hint_token, id_token_hint or
login_hint). |
unsupported_grant_type
The authorization grant type is not supported by the
authorization server.
|
unsupported_response_type
The authorization server does not support obtaining an
authorization code or an access token using this method.
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode access_denied
public static final ErrorCode account_selection_required
prompt
parameter value in the Authentication Request is
none, but the Authentication Request cannot be
completed without displaying a user interface to prompt
for a session to use.public static final ErrorCode consent_required
prompt
parameter value in the Authentication Request is
none, but the Authentication Request cannot
be completed without displaying a user interface for
End-User consent.public static final ErrorCode insufficient_scope
public static final ErrorCode interaction_required
prompt parameter value in the Authentication Request
is none, but the Authentication Request cannot be
completed without displaying a user interface for End-User
interaction.public static final ErrorCode invalid_client
public static final ErrorCode invalid_grant
public static final ErrorCode invalid_request
public static final ErrorCode invalid_request_uri
request_uri in the Authorization Request
returns an error or contains invalid data.public static final ErrorCode invalid_request_object
request parameter contains an invalid Request Object.public static final ErrorCode invalid_scope
public static final ErrorCode invalid_token
public static final ErrorCode login_required
prompt parameter
value in the Authentication Request is none, but the
Authentication Request cannot be completed without displaying
a user interface for End-User authentication.public static final ErrorCode registration_not_supported
registration
parameter defined in Section 7.2.1.public static final ErrorCode request_not_supported
request parameter
defined in Section 6.public static final ErrorCode request_uri_not_supported
request_uri parameter
defined in Section 6.public static final ErrorCode server_error
public static final ErrorCode temporarily_unavailable
public static final ErrorCode unauthorized_client
public static final ErrorCode unsupported_grant_type
public static final ErrorCode unsupported_response_type
public static final ErrorCode invalid_redirect_uri
See "3.2.2. Client Registration Error Response" in RFC 7591 for details.
public static final ErrorCode invalid_client_metadata
See "3.2.2. Client Registration Error Response" in RFC 7591 for details.
public static final ErrorCode invalid_software_statement
See "3.2.2. Client Registration Error Response" in RFC 7591 for details.
public static final ErrorCode unapproved_software_statement
See "3.2.2. Client Registration Error Response" in RFC 7591 for details.
public static final ErrorCode expired_login_hint_token
login_hint_token has expired.
This error code is defined in the CIBA Core specification.
public static final ErrorCode unknown_user_id
login_hint_token, id_token_hint or
login_hint).
This error code is defined in the CIBA Core specification.
public static final ErrorCode missing_user_code
This error code is defined in the CIBA Core specification.
public static final ErrorCode invalid_user_code
This error code is defined in the CIBA Core specification.
public static final ErrorCode invalid_binding_message
This error code is defined in the CIBA Core specification.
public static final ErrorCode authorization_pending
This error code is defined in the CIBA Core specification and the Device Flow specification.
public static final ErrorCode slow_down
authorization_pending, the authorization request
is still pending and polling should continue, but the interval should
be increased.
This error code is defined in the CIBA Core specification and the Device Flow specification.
public static final ErrorCode expired_token
In the context of CIBA, the token means auth_req_id. In the
context of Device Flow, the token means device_code.
public static final ErrorCode transaction_failed
access_denied and expired_token.public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2019. All rights reserved.