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 ErrorObjectThe resource owner or authorisation server denied the request.static final StringTheACCESS_DENIEDerror code string.static final ErrorObjectThe requested authorisation details are invalid, unknown, or malformed.static final StringTheINVALID_AUTHORIZATION_DETAILSerror code string.static final ErrorObjectClient authentication failed (e.g.static final StringTheINVALID_CLIENTerror code string.static final ErrorObjectThe DPoP proof received by the authorisation server is invalid.static final StringTheUSE_DPOP_NONCEerror code string.static final ErrorObjectThe provided authorisation grant (e.g.static final StringTheINVALID_GRANTerror code string.static final ErrorObjectThe request is missing a required parameter, includes an invalid parameter, or is otherwise malformed.static final StringTheINVALID_REQUESTerror code string.static final ErrorObjectTherequestparameter in theAuthorizationRequestcontains an invalid request object.static final StringTheINVALID_REQUEST_OBJECTerror code string.static final ErrorObjectTherequest_uriin theAuthorizationRequestreturns an error or invalid data.static final StringTheINVALID_REQUEST_URIerror code string.static final ErrorObjectDeprecated.static final StringDeprecated.static final ErrorObjectThe requested scope is invalid, unknown, or malformed.static final StringTheINVALID_SCOPEerror code string.static final ErrorObjectThe specified resource server URI is not valid or accepted by the authorisation server.static final StringTheINVALID_RESOURCEerror code string.static final ErrorObjectNo trusted anchor could be found to process an OpenID Connect Federation 1.0 authorisation request using automatic client registration.static final StringTheMISSING_TRUST_ANCHORerror code string.static final ErrorObjectThe scope of the request is considered overbroad by the authorisation server.static final StringTheOVERBROAD_SCOPEerror code string.static final ErrorObjectTherequestparameter in theAuthorizationRequestis not supported.static final StringTheREQUEST_NOT_SUPPORTEDerror code string.static final ErrorObjectTherequest_uriparameter in theAuthorizationRequestis not supported.static final StringTheREQUEST_URI_NOT_SUPPORTEDerror code string.static final ErrorObjectThe authorisation server encountered an unexpected condition which prevented it from fulfilling the request.static final StringTheSERVER_ERRORerror code string.static final ErrorObjectThe authorisation server is currently unable to handle the request due to a temporary overloading or maintenance of the server.static final StringTheTEMPORARILY_UNAVAILABLEerror code string.static final ErrorObjectThe client is not authorised to request an authorisation code using this method.static final StringTheUNAUTHORIZED_CLIENTerror code string.static final ErrorObjectThe authorisation grant type is not supported by the authorisation server.static final StringTheUNSUPPORTED_GRANT_TYPEerror code string.static final ErrorObjectUnsupported parameter.static final StringTheUNSUPPORTED_PARAMETERerror code string.static final ErrorObjectThe authorisation server does not support obtaining an authorisation code using this method.static final StringTheUNSUPPORTED_RESPONSE_TYPEerror code string.static final ErrorObjectUse of DPoP nonce required.static final StringTheUSE_DPOP_NONCEerror code string.static final ErrorObjectThe trust chain validation for an OpenID Connect Federation 1.0 authorisation request using automatic client registration failed.static final StringTheVALIDATION_FAILEDerror code string. -
Method Summary
-
Field Details
-
INVALID_REQUEST_CODE
TheINVALID_REQUESTerror 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_CLIENTerror code string.- See Also:
-
UNAUTHORIZED_CLIENT
The client is not authorised to request an authorisation code using this method. -
ACCESS_DENIED_CODE
TheACCESS_DENIEDerror code string.- See Also:
-
ACCESS_DENIED
The resource owner or authorisation server denied the request. -
UNSUPPORTED_RESPONSE_TYPE_CODE
TheUNSUPPORTED_RESPONSE_TYPEerror code string.- See Also:
-
UNSUPPORTED_RESPONSE_TYPE
The authorisation server does not support obtaining an authorisation code using this method. -
INVALID_SCOPE_CODE
TheINVALID_SCOPEerror code string.- See Also:
-
INVALID_SCOPE
The requested scope is invalid, unknown, or malformed. -
INVALID_AUTHORIZATION_DETAILS_CODE
TheINVALID_AUTHORIZATION_DETAILSerror code string.- See Also:
-
INVALID_AUTHORIZATION_DETAILS
The requested authorisation details are invalid, unknown, or malformed. -
SERVER_ERROR_CODE
TheSERVER_ERRORerror code string.- See Also:
-
SERVER_ERROR
The authorisation server encountered an unexpected condition which prevented it from fulfilling the request. -
TEMPORARILY_UNAVAILABLE_CODE
TheTEMPORARILY_UNAVAILABLEerror 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_CLIENTerror 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_GRANTerror 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_TYPEerror code string.- See Also:
-
UNSUPPORTED_GRANT_TYPE
The authorisation grant type is not supported by the authorisation server. -
INVALID_REQUEST_URI_CODE
TheINVALID_REQUEST_URIerror code string.- See Also:
-
INVALID_REQUEST_URI
Therequest_uriin theAuthorizationRequestreturns an error or invalid data. -
INVALID_REQUEST_OBJECT_CODE
TheINVALID_REQUEST_OBJECTerror code string.- See Also:
-
INVALID_REQUEST_OBJECT
Therequestparameter in theAuthorizationRequestcontains an invalid request object. -
REQUEST_URI_NOT_SUPPORTED_CODE
TheREQUEST_URI_NOT_SUPPORTEDerror code string.- See Also:
-
REQUEST_URI_NOT_SUPPORTED
Therequest_uriparameter in theAuthorizationRequestis not supported. -
REQUEST_NOT_SUPPORTED_CODE
TheREQUEST_NOT_SUPPORTEDerror code string.- See Also:
-
REQUEST_NOT_SUPPORTED
Therequestparameter in theAuthorizationRequestis not supported. -
INVALID_RESOURCE_CODE
Deprecated.TheINVALID_RESOURCEerror 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_RESOURCEerror code string.- See Also:
-
INVALID_TARGET
The specified resource server URI is not valid or accepted by the authorisation server. -
OVERBROAD_SCOPE_CODE
TheOVERBROAD_SCOPEerror code string.- See Also:
-
OVERBROAD_SCOPE
The scope of the request is considered overbroad by the authorisation server. -
INVALID_DPOP_PROOF_CODE
TheUSE_DPOP_NONCEerror code string.- See Also:
-
INVALID_DPOP_PROOF
The DPoP proof received by the authorisation server is invalid. -
USE_DPOP_NONCE_CODE
TheUSE_DPOP_NONCEerror code string.- See Also:
-
USE_DPOP_NONCE
Use of DPoP nonce required. -
MISSING_TRUST_ANCHOR_CODE
TheMISSING_TRUST_ANCHORerror 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_FAILEDerror 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_PARAMETERerror code string.- See Also:
-
UNSUPPORTED_PARAMETER
Unsupported parameter.
-