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

davsclaus 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 09b05a74175 camel-jira: Document the use of API Token as password for 
basic auth (#7831)
09b05a74175 is described below

commit 09b05a7417546e1eb6c997aff7f1b8855043e8d5
Author: Claudio Miranda <[email protected]>
AuthorDate: Tue Jun 21 02:01:52 2022 -0300

    camel-jira: Document the use of API Token as password for basic auth (#7831)
---
 components/camel-jira/src/main/docs/jira-component.adoc               | 2 +-
 .../main/java/org/apache/camel/component/jira/JiraConfiguration.java  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-jira/src/main/docs/jira-component.adoc 
b/components/camel-jira/src/main/docs/jira-component.adoc
index cc063ef3b3f..67f5e473827 100644
--- a/components/camel-jira/src/main/docs/jira-component.adoc
+++ b/components/camel-jira/src/main/docs/jira-component.adoc
@@ -96,7 +96,7 @@ We recommend to use OAuth whenever possible, as it provides 
the best security fo
 
 === Basic authentication requirements:
 
-* An username and password
+* An username and a password or the API Token. Verify if the Jira server 
installation supports the use of 
https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/[API
 Tokens] instead of the user's password. This way the user's password is not 
exposed.
 
 === OAuth authentication requirements:
 
diff --git 
a/components/camel-jira/src/main/java/org/apache/camel/component/jira/JiraConfiguration.java
 
b/components/camel-jira/src/main/java/org/apache/camel/component/jira/JiraConfiguration.java
index c98d770902d..2874b016a4b 100644
--- 
a/components/camel-jira/src/main/java/org/apache/camel/component/jira/JiraConfiguration.java
+++ 
b/components/camel-jira/src/main/java/org/apache/camel/component/jira/JiraConfiguration.java
@@ -110,7 +110,7 @@ public class JiraConfiguration implements Cloneable {
 
     /**
      * Time in milliseconds to elapse for the next poll.
-     * 
+     *
      * @param delay Integer time in milliseconds
      */
     public void setDelay(Integer delay) {
@@ -135,7 +135,7 @@ public class JiraConfiguration implements Cloneable {
     }
 
     /**
-     * (Basic authentication only) The password to authenticate to the Jira 
server. Use only if username basic
+     * (Basic authentication only) The password or the API Token to 
authenticate to the Jira server. Use only if username basic
      * authentication is used.
      */
     public void setPassword(String password) {

Reply via email to