Class DeviceEndpoint

    • Field Detail

      • logger

        protected static final org.jboss.logging.Logger logger
    • Method Detail

      • handleDeviceRequest

        @Path("")
        @POST
        @Consumes("application/x-www-form-urlencoded")
        @Produces("application/json")
        public javax.ws.rs.core.Response handleDeviceRequest()
        Handles device authorization requests.
        Returns:
        the device authorization response.
      • preflight

        @OPTIONS
        public javax.ws.rs.core.Response preflight()
      • verifyUserCode

        @GET
        public javax.ws.rs.core.Response verifyUserCode​(@QueryParam("user_code")
                                                        String userCode)
        This endpoint is used by end-users to start the flow to authorize a device.
        Parameters:
        userCode - the user code to authorize
        Returns:
      • verifyUserCode

        @Path("/")
        @POST
        @Consumes("application/x-www-form-urlencoded")
        public javax.ws.rs.core.Response verifyUserCode()
        Verifies the code provided by the end-user and start the authentication.
        Returns:
      • status

        @Path("status")
        @GET
        public javax.ws.rs.core.Response status​(@QueryParam("error")
                                                String error)
        Showing the result of verification process for OAuth 2.0 Device Authorization Grant. This outputs login success or failure messages.
        Parameters:
        error -
        Returns:
      • close

        public void close()
        Specified by:
        close in interface Provider