You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/03/10 13:12:20 UTC

[camel] branch camel-3.14.x updated: Camel-Slack: Improved information about consumer and permissions

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

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


The following commit(s) were added to refs/heads/camel-3.14.x by this push:
     new e72997f  Camel-Slack: Improved information about consumer and permissions
e72997f is described below

commit e72997f270432eebf210d67f7e41b056ee95523d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 10 13:45:10 2022 +0100

    Camel-Slack: Improved information about consumer and permissions
---
 .../camel-slack/src/main/docs/slack-component.adoc | 31 +++++++++++++++++-----
 1 file changed, 25 insertions(+), 6 deletions(-)

diff --git a/components/camel-slack/src/main/docs/slack-component.adoc b/components/camel-slack/src/main/docs/slack-component.adoc
index 7a0e0fd..4be2ae6 100644
--- a/components/camel-slack/src/main/docs/slack-component.adoc
+++ b/components/camel-slack/src/main/docs/slack-component.adoc
@@ -143,11 +143,31 @@ In this way you'll get the last message from general channel. The consumer will
 
 You'll need to create a Slack app and use it on your workspace.
 
-Use the 'Bot User OAuth Access Token' as token for the consumer endpoint.
-
-IMPORTANT: Add the corresponding history (`channels:history` or `groups:history` or `mpim:history` or `im:history`) and
-read (`channels:read` or `groups:read` or `mpim:read` or `im:read`) user token scope to your app to grant it permission to
-view messages in the corresponding channel. You will need to use the conversationType option to set it up too (`PUBLIC_CHANNEL`, `PRIVATE_CHANNEL`, `MPIM`, `IM`)
+Use the 'User OAuth Token' as token for the consumer endpoint.
+
+IMPORTANT: Add the corresponding history (`channels:history`, `groups:history`, `mpim:history` and `im:history`) and
+read (`channels:read`, `groups:read`, `mpim:read` and `im:read`) user token scope to your app to grant it permission to
+view messages in the corresponding channel.
+
+For Bot tokens you'll need the following permissions:
+- channels:history
+- groups:history
+- im:history
+- mpim:history
+- channels:read
+- groups:read
+- im:read
+- mpim:read
+
+For User tokens you'll need the following permissions:
+- channels:history
+- groups:history
+- im:history
+- mpim:history
+- channels:read
+- groups:read
+- im:read
+- mpim:read
 
 The naturalOrder option allows consuming messages from the oldest to the newest.
 Originally you would get the newest first and consume backward (message 3 => message 2 => message 1)
@@ -155,5 +175,4 @@ Originally you would get the newest first and consume backward (message 3 => mes
 IMPORTANT: You can use the conversationType option to read history and messages from a channel that is not only public
 (`PUBLIC_CHANNEL`,`PRIVATE_CHANNEL`, `MPIM`, `IM`)
 
-
 include::spring-boot:partial$starter.adoc[]