You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by je...@apache.org on 2024/05/15 20:11:38 UTC

(camel) branch main updated: camel-salesforce: Document CLIENT_CREDENTIALS auth type.

This is an automated email from the ASF dual-hosted git repository.

jeremyross pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new e844404abe3 camel-salesforce: Document CLIENT_CREDENTIALS auth type.
e844404abe3 is described below

commit e844404abe37fb1cc764b80a383778a512c73ff7
Author: Jeremy Ross <je...@gmail.com>
AuthorDate: Wed May 15 13:10:30 2024 -0700

    camel-salesforce: Document CLIENT_CREDENTIALS auth type.
---
 .../src/main/docs/salesforce-component.adoc                           | 2 +-
 .../org/apache/camel/component/salesforce/SalesforceComponent.java    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/docs/salesforce-component.adoc b/components/camel-salesforce/camel-salesforce-component/src/main/docs/salesforce-component.adoc
index d72db1e6040..d1e7bd0ec0f 100644
--- a/components/camel-salesforce/camel-salesforce-component/src/main/docs/salesforce-component.adoc
+++ b/components/camel-salesforce/camel-salesforce-component/src/main/docs/salesforce-component.adoc
@@ -87,7 +87,7 @@ For each of the flows, different sets of properties need to be set:
 | Property     | Where to find it on Salesforce     | Flow
 
 | clientId     | Connected App, Consumer Key        | All flows
-| clientSecret | Connected App, Consumer Secret     | Username-Password, Refresh Token
+| clientSecret | Connected App, Consumer Secret     | Username-Password, Refresh Token, Client Credentials
 | userName     | Salesforce user username           | Username-Password, JWT Bearer Token
 | password     | Salesforce user password           | Username-Password
 | refreshToken | From OAuth flow callback           | Refresh Token
diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/SalesforceComponent.java b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/SalesforceComponent.java
index 434c5bf8be7..6e88f559467 100644
--- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/SalesforceComponent.java
+++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/SalesforceComponent.java
@@ -153,10 +153,10 @@ public class SalesforceComponent extends DefaultComponent implements SSLContextP
               label = "common,security")
     private String jwtAudience;
 
-    @Metadata(description = "Explicit authentication method to be used, one of USERNAME_PASSWORD, REFRESH_TOKEN or JWT."
+    @Metadata(description = "Explicit authentication method to be used, one of USERNAME_PASSWORD, REFRESH_TOKEN, CLIENT_CREDENTIALS, or JWT."
                             + " Salesforce component can auto-determine the authentication method to use from the properties set, set this "
                             + " property to eliminate any ambiguity.",
-              label = "common,security", enums = "USERNAME_PASSWORD,REFRESH_TOKEN,JWT")
+              label = "common,security", enums = "USERNAME_PASSWORD,REFRESH_TOKEN,CLIENT_CREDENTIALS,JWT")
     private AuthenticationType authenticationType;
 
     @Metadata(description = "If set to true prevents the component from authenticating to Salesforce with the start of"