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

acosentino pushed a commit to branch oauth-jira
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 3588833ac3105646cbe10ed83eb27b00fedf7655
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Jul 4 11:43:06 2022 +0200

    Jira source Kamelet supporting oauth
---
 .../kamelets/jira-oauth-source.kamelet.yaml          | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/jira-oauth-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/jira-oauth-source.kamelet.yaml
index 74cafa79..634dda3a 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/jira-oauth-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/jira-oauth-source.kamelet.yaml
@@ -30,9 +30,14 @@ spec:
   definition:
     title: "Jira oauth Source"
     description: |-
-      Receive notifications about new issues from Jira.
+      Receive notifications about new issues from Jira through OAuth 
authentication.
     required:
       - jiraUrl
+      - accessToken
+      - verificationCode
+      - consumerKey
+      - privateKey
+      - jql
     type: object
     properties:
       jiraUrl:
@@ -42,13 +47,15 @@ spec:
         example: http://my_jira.com:8081
       accessToken:
         title: Username
-        description: The username to access Jira
+        description: The access token generated by the Jira server.
         type: string
+        format: password
         x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
         - urn:camel:group:credentials
       verificationCode:
         title: Password
-        description: The password to access Jira
+        description: The verification code from Jira generated in the first 
step of the authorization proccess.
         type: string
         format: password
         x-descriptors:
@@ -56,7 +63,7 @@ spec:
         - urn:camel:group:credentials
       consumerKey:
         title: Password
-        description: The password to access Jira
+        description: The consumer key from Jira settings.
         type: string
         format: password
         x-descriptors:
@@ -64,7 +71,7 @@ spec:
         - urn:camel:group:credentials
       privateKey:
         title: Password
-        description: The password to access Jira
+        description: The private key generated by the client to encrypt the 
conversation to the server.
         type: string
         format: password
         x-descriptors:
@@ -75,7 +82,6 @@ spec:
         description: A query to filter issues
         type: string
         example: project=MyProject
-      
   types:
     out:
       mediaType: application/json
@@ -91,7 +97,7 @@ spec:
         jiraUrl: "{{jiraUrl}}"
         accessToken: "{{accessToken}}"
         verificationCode: "{{verificationCode}}"
-        privateKey: "{{privateKey}}"
+        privateKey: "RAW({{privateKey}})"
         consumerKey: "{{consumerKey}}"
         jql: "{{jql}}"
       steps:

Reply via email to