Class DeviceCompleteResponse

  • All Implemented Interfaces:
    Serializable

    public class DeviceCompleteResponse
    extends ApiResponse
    Response from Authlete's /api/device/complete API.

    Authlete's /api/device/complete API returns JSON which can be mapped to this class. The authorization server implementation should retrieve the value of action from the response and take the following steps according to the value.

    SUCCESS

    When the value of action is SUCCESS, it means that the API call has been processed successfully. The authorization server should return a successful response to the web browser the end-user is using.

    INVALID_REQUEST

    When the value of action is INVALID_REQUEST, it means that the API call is invalid. Probably, the authorization server implementation has some bugs.

    USER_CODE_EXPIRED

    When the value of action is USER_CODE_EXPIRED, it means that the user code included in the API call has expired. The authorization server implementation should tell the end-user that the user code has expired and urge her to re-initiate a device flow.

    USER_CODE_NOT_EXIST

    When the value of action is USER_CODE_NOT_EXIST, it means that the user code included in the API call does not exist. The authorization server implementation should tell the end-user that the user code has been invalidated and urge her to re-initiate a device flow.

    SERVER_ERROR

    When the value of action is SERVER_ERROR, it means that an error occurred on Authlete side. The authorization server implementation should tell the end-user that something wrong happened and urge her to re-initiate a device flow.

    Since:
    2.42, Authlete 2.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • DeviceCompleteResponse

        public DeviceCompleteResponse()