Class DeviceVerificationRequestHandler


  • public class DeviceVerificationRequestHandler
    extends Object
    Handler for getting information associated with a user code that the end-user input at the verification endpoint in OAuth 2.0 Device Authorization Grant (Device Flow).

    handle() method should be called after the authorization server receives a user code that the end-user input at the verification endpoint. The handle() method calls Authlete's /api/device/verification API, receives a response from the API, and dispatches processing according to the action parameter in the response.

    Since:
    2.18
    Author:
    Hideki Ikeda
    • Method Detail

      • handle

        public javax.ws.rs.core.Response handle()
                                         throws javax.ws.rs.WebApplicationException
        Handle information associated with a user code that the end-user input at the verification endpoint in OAuth 2.0 Device Authorization Grant (Device Flow).
        Returns:
        A response that should be returned to the end-user.
        Throws:
        javax.ws.rs.WebApplicationException - An error occurred.
      • getApiCaller

        protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
      • unexpected

        protected javax.ws.rs.InternalServerErrorException unexpected​(String message,
                                                                      Throwable cause)