Class OAuth2Error


  • public final class OAuth2Error
    extends Object
    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 Detail

      • INVALID_REQUEST

        public static final ErrorObject INVALID_REQUEST
        The request is missing a required parameter, includes an invalid parameter, or is otherwise malformed.
      • UNAUTHORIZED_CLIENT

        public static final ErrorObject UNAUTHORIZED_CLIENT
        The client is not authorised to request an authorisation code using this method.
      • ACCESS_DENIED

        public static final ErrorObject ACCESS_DENIED
        The resource owner or authorisation server denied the request.
      • SERVER_ERROR

        public static final ErrorObject SERVER_ERROR
        The authorisation server encountered an unexpected condition which prevented it from fulfilling the request.
      • TEMPORARILY_UNAVAILABLE

        public static final ErrorObject TEMPORARILY_UNAVAILABLE
        The authorisation server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
      • INVALID_CLIENT

        public static final ErrorObject INVALID_CLIENT
        Client authentication failed (e.g. unknown client, no client authentication included, or unsupported authentication method).
      • INVALID_GRANT

        public static final ErrorObject 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.
      • INVALID_RESOURCE

        public static final ErrorObject INVALID_RESOURCE
        The specified resource server URI is not valid or accepted by the authorisation server.