tmielke opened a new pull request, #25876:
URL: https://github.com/apache/camel/pull/25876

   # Description
   
     The Maven plugin previously only supported Username-Password 
authentication,
     hardcoding the grant type in the codegen layer. With Salesforce retiring 
the
     USERNAME_PASSWORD grant type in Winter '27 (February 2027), this adds 
support
     for JWT and Client Credentials flows.
   
     Changes:
     - Add authenticationType parameter to explicitly select the auth type
     - Refactor codegen login config to use no-arg constructor + setters, 
enabling auto-detection from provided credentials
     - Make userName optional (not needed for Client Credentials)
     - Add Mojo-level validation for ambiguous credential combinations
     - Add manual integration tests for all three authentication types
     - Refactor AbstractSalesforceMojoTest into a utility class holding only 
static setup helpers; move login tests into CamelSalesforceLoginManualIT to 
separate test infrastructure from test logic
     - Update README.md with per-auth-type requirements and examples
     - Add upgrade guide entry
   
     Note: without the ambiguity validation, omitting the password while 
providing
     clientSecret and userName would silently auto-detect Client Credentials 
instead
     of failing for Username-Password. The Mojo now rejects this combination 
early
     with an actionable error message.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to