Package com.nimbusds.oauth2.sdk
Class OAuth2Error
java.lang.Object
com.nimbusds.oauth2.sdk.OAuth2Error
Standard OAuth 2.0 authorisation and token endpoint errors.
The set HTTP status code is ignored for authorisation errors passed by HTTP redirection. Errors that are only used by at the authorisation endpoint are supplied with a matching HTTP status code in case they are used in a different context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ErrorObject
The resource owner or authorisation server denied the request.static final String
TheACCESS_DENIED
error code string.static final ErrorObject
The requested authorisation details are invalid, unknown, or malformed.static final String
TheINVALID_AUTHORIZATION_DETAILS
error code string.static final ErrorObject
Client authentication failed (e.g.static final String
TheINVALID_CLIENT
error code string.static final ErrorObject
The DPoP proof received by the authorisation server is invalid.static final String
TheUSE_DPOP_NONCE
error code string.static final ErrorObject
The provided authorisation grant (e.g.static final String
TheINVALID_GRANT
error code string.static final ErrorObject
The request is missing a required parameter, includes an invalid parameter, or is otherwise malformed.static final String
TheINVALID_REQUEST
error code string.static final ErrorObject
Therequest
parameter in theAuthorizationRequest
contains an invalid request object.static final String
TheINVALID_REQUEST_OBJECT
error code string.static final ErrorObject
Therequest_uri
in theAuthorizationRequest
returns an error or invalid data.static final String
TheINVALID_REQUEST_URI
error code string.static final ErrorObject
Deprecated.static final String
Deprecated.static final ErrorObject
The requested scope is invalid, unknown, or malformed.static final String
TheINVALID_SCOPE
error code string.static final ErrorObject
The specified resource server URI is not valid or accepted by the authorisation server.static final String
TheINVALID_RESOURCE
error code string.static final ErrorObject
No trusted anchor could be found to process an OpenID Connect Federation 1.0 authorisation request using automatic client registration.static final String
TheMISSING_TRUST_ANCHOR
error code string.static final ErrorObject
The scope of the request is considered overbroad by the authorisation server.static final String
TheOVERBROAD_SCOPE
error code string.static final ErrorObject
Therequest
parameter in theAuthorizationRequest
is not supported.static final String
TheREQUEST_NOT_SUPPORTED
error code string.static final ErrorObject
Therequest_uri
parameter in theAuthorizationRequest
is not supported.static final String
TheREQUEST_URI_NOT_SUPPORTED
error code string.static final ErrorObject
The authorisation server encountered an unexpected condition which prevented it from fulfilling the request.static final String
TheSERVER_ERROR
error code string.static final ErrorObject
The authorisation server is currently unable to handle the request due to a temporary overloading or maintenance of the server.static final String
TheTEMPORARILY_UNAVAILABLE
error code string.static final ErrorObject
The client is not authorised to request an authorisation code using this method.static final String
TheUNAUTHORIZED_CLIENT
error code string.static final ErrorObject
The authorisation grant type is not supported by the authorisation server.static final String
TheUNSUPPORTED_GRANT_TYPE
error code string.static final ErrorObject
Unsupported parameter.static final String
TheUNSUPPORTED_PARAMETER
error code string.static final ErrorObject
The authorisation server does not support obtaining an authorisation code using this method.static final String
TheUNSUPPORTED_RESPONSE_TYPE
error code string.static final ErrorObject
Use of DPoP nonce required.static final String
TheUSE_DPOP_NONCE
error code string.static final ErrorObject
The trust chain validation for an OpenID Connect Federation 1.0 authorisation request using automatic client registration failed.static final String
TheVALIDATION_FAILED
error code string. -
Method Summary
-
Field Details
-
INVALID_REQUEST_CODE
TheINVALID_REQUEST
error code string.- See Also:
-
INVALID_REQUEST
The request is missing a required parameter, includes an invalid parameter, or is otherwise malformed. -
UNAUTHORIZED_CLIENT_CODE
TheUNAUTHORIZED_CLIENT
error code string.- See Also:
-
UNAUTHORIZED_CLIENT
The client is not authorised to request an authorisation code using this method. -
ACCESS_DENIED_CODE
TheACCESS_DENIED
error code string.- See Also:
-
ACCESS_DENIED
The resource owner or authorisation server denied the request. -
UNSUPPORTED_RESPONSE_TYPE_CODE
TheUNSUPPORTED_RESPONSE_TYPE
error code string.- See Also:
-
UNSUPPORTED_RESPONSE_TYPE
The authorisation server does not support obtaining an authorisation code using this method. -
INVALID_SCOPE_CODE
TheINVALID_SCOPE
error code string.- See Also:
-
INVALID_SCOPE
The requested scope is invalid, unknown, or malformed. -
INVALID_AUTHORIZATION_DETAILS_CODE
TheINVALID_AUTHORIZATION_DETAILS
error code string.- See Also:
-
INVALID_AUTHORIZATION_DETAILS
The requested authorisation details are invalid, unknown, or malformed. -
SERVER_ERROR_CODE
TheSERVER_ERROR
error code string.- See Also:
-
SERVER_ERROR
The authorisation server encountered an unexpected condition which prevented it from fulfilling the request. -
TEMPORARILY_UNAVAILABLE_CODE
TheTEMPORARILY_UNAVAILABLE
error code string.- See Also:
-
TEMPORARILY_UNAVAILABLE
The authorisation server is currently unable to handle the request due to a temporary overloading or maintenance of the server. -
INVALID_CLIENT_CODE
TheINVALID_CLIENT
error code string.- See Also:
-
INVALID_CLIENT
Client authentication failed (e.g. unknown client, no client authentication included, or unsupported authentication method). -
INVALID_GRANT_CODE
TheINVALID_GRANT
error code string.- See Also:
-
INVALID_GRANT
The provided authorisation grant (e.g. authorisation 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. -
UNSUPPORTED_GRANT_TYPE_CODE
TheUNSUPPORTED_GRANT_TYPE
error code string.- See Also:
-
UNSUPPORTED_GRANT_TYPE
The authorisation grant type is not supported by the authorisation server. -
INVALID_REQUEST_URI_CODE
TheINVALID_REQUEST_URI
error code string.- See Also:
-
INVALID_REQUEST_URI
Therequest_uri
in theAuthorizationRequest
returns an error or invalid data. -
INVALID_REQUEST_OBJECT_CODE
TheINVALID_REQUEST_OBJECT
error code string.- See Also:
-
INVALID_REQUEST_OBJECT
Therequest
parameter in theAuthorizationRequest
contains an invalid request object. -
REQUEST_URI_NOT_SUPPORTED_CODE
TheREQUEST_URI_NOT_SUPPORTED
error code string.- See Also:
-
REQUEST_URI_NOT_SUPPORTED
Therequest_uri
parameter in theAuthorizationRequest
is not supported. -
REQUEST_NOT_SUPPORTED_CODE
TheREQUEST_NOT_SUPPORTED
error code string.- See Also:
-
REQUEST_NOT_SUPPORTED
Therequest
parameter in theAuthorizationRequest
is not supported. -
INVALID_RESOURCE_CODE
Deprecated.TheINVALID_RESOURCE
error code string.- See Also:
-
INVALID_RESOURCE
Deprecated.The specified resource server URI is not valid or accepted by the authorisation server. @see #INVALID_TARGET -
INVALID_TARGET_CODE
TheINVALID_RESOURCE
error code string.- See Also:
-
INVALID_TARGET
The specified resource server URI is not valid or accepted by the authorisation server. -
OVERBROAD_SCOPE_CODE
TheOVERBROAD_SCOPE
error code string.- See Also:
-
OVERBROAD_SCOPE
The scope of the request is considered overbroad by the authorisation server. -
INVALID_DPOP_PROOF_CODE
TheUSE_DPOP_NONCE
error code string.- See Also:
-
INVALID_DPOP_PROOF
The DPoP proof received by the authorisation server is invalid. -
USE_DPOP_NONCE_CODE
TheUSE_DPOP_NONCE
error code string.- See Also:
-
USE_DPOP_NONCE
Use of DPoP nonce required. -
MISSING_TRUST_ANCHOR_CODE
TheMISSING_TRUST_ANCHOR
error code string.- See Also:
-
MISSING_TRUST_ANCHOR
No trusted anchor could be found to process an OpenID Connect Federation 1.0 authorisation request using automatic client registration. -
VALIDATION_FAILED_CODE
TheVALIDATION_FAILED
error code string.- See Also:
-
VALIDATION_FAILED
The trust chain validation for an OpenID Connect Federation 1.0 authorisation request using automatic client registration failed. -
UNSUPPORTED_PARAMETER_CODE
TheUNSUPPORTED_PARAMETER
error code string.- See Also:
-
UNSUPPORTED_PARAMETER
Unsupported parameter.
-