Class OAuthService
java.lang.Object
io.camunda.connector.http.base.authentication.OAuthService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOAuthRequestFrom(OAuthAuthentication authentication) Converts aHttpCommonRequestto a request that can be used to fetch an OAuth token.
-
Constructor Details
-
OAuthService
public OAuthService()
-
-
Method Details
-
createOAuthRequestFrom
Converts aHttpCommonRequestto 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 toOAuthConstants.BASIC_AUTH_HEADER), or as client credentials in the request body (if the client authentication is set toOAuthConstants.CREDENTIALS_BODY).- Parameters:
authentication- the OAuth authentication data- Returns:
- a new request that can be used to fetch an OAuth token
- See Also:
-
extractTokenFromResponse
-