Class OAuthService

java.lang.Object
io.camunda.connector.http.base.authentication.OAuthService

public class OAuthService extends Object
  • Constructor Details

    • OAuthService

      public OAuthService()
  • Method Details

    • createOAuthRequestFrom

      public HttpCommonRequest createOAuthRequestFrom(OAuthAuthentication authentication)
      Converts a HttpCommonRequest to a request that can be used to fetch an OAuth token. This method will create a new request with the OAuth token endpoint as the URL, the authentication data as the body, and the client ID and client secret as the basic authentication header (if the client authentication is set to OAuthConstants.BASIC_AUTH_HEADER), or as client credentials in the request body (if the client authentication is set to OAuthConstants.CREDENTIALS_BODY).
      Parameters:
      authentication - the OAuth authentication data
      Returns:
      a new request that can be used to fetch an OAuth token
      See Also:
    • extractTokenFromResponse

      public String extractTokenFromResponse(Object body)