Interface DeviceAuthorizationRestWebService

All Known Implementing Classes:
DeviceAuthorizationRestWebServiceImpl

public interface DeviceAuthorizationRestWebService

Provides interface to process OAuth2 Device Flow.

  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    deviceAuthorization(String clientId, String scope, jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse, jakarta.ws.rs.core.SecurityContext securityContext)
    Device Authorization Request [RFC8628 3.1].
  • Method Details

    • deviceAuthorization

      @POST @Path("/device_authorization") @Produces("application/json") jakarta.ws.rs.core.Response deviceAuthorization(@FormParam("client_id") String clientId, @FormParam("scope") String scope, @Context jakarta.servlet.http.HttpServletRequest httpRequest, @Context jakarta.servlet.http.HttpServletResponse httpResponse, @Context jakarta.ws.rs.core.SecurityContext securityContext)
      Device Authorization Request [RFC8628 3.1]. Generates user_code, device_code and data needed to follow the device authorization flow in other rest services.
      Parameters:
      clientId - REQUIRED The client identifier as described in Section 2.2 of [RFC6749].
      scope - The scope of the access request as defined by Section 3.3 of [RFC6749].