Setup:
Authentication Error:
Followed steps as https://catalog.dataminer.services/result/driver/5770 still facing authentication issue.
All right, here it goes for the correct solution.
The problem is that the driver was written some time ago and is depending on some legacy Slack APIs. I did some digging and found that there are two types of Slack Apps. The old ones (the one that we need for the driver) and the new ones (the one you and I created initially but clearly do not work).
So, how do we fix it?
On this page about "Legacy Tokens" you can find an URL to "Create a classic Slack app". This is the gold we were digging for. If you click on the URL you will be greeted by a form that will clearly indicate you are creating a classic slack app.
From here on out you can follow the steps listed in the documentation.
- Add legacy bot user (in the App Home menu)
- Go to the OAuth & Permissions tab and install the bot in your Workspace
- Now copy the Bot User OAuth Token and paste it into the authentication field of your element.
- Happy Slack-ing!!
If you want to make sure that the authentication succeeded you can right-click on your element in the surveyor click View and then Stream viewer. This will show all the requests that your element is executing towards the Slack API.
I looked at the driver help and there they also recommend to set the IP address/host to slack.com. Can you try adjusting this for your element and see fit his works?
Indeed, could you try if that works?
i tried and still get Fail authentication
Well my agent also gives failed authentication but for some reason it does work…
Hi Niraj
in the docs they also mention a user token that you could get which follows the xoxp format. Maybe check if you can get this token and if this fixes your issue.
Hello
So to Slack element need xoxp instead of xoxb format?
I think it might be a driver issue. I just tested a bit with the driver and pasted the xoxb-… token in there, the Authentication Status says “fail” and the Authentication Message says “not_allowed_token_type” but I am able to send messages with the driver. Can you check if you can see any conversations under the conversations tab and if you can send messages?
No I don’t see any conversation, how can I send msg using driver?
You can go to the Conversations page on your element and there you will be able to send messages by using the send message parameter for each of the different conversations.
When i go to Conversation Table i don’t see any thing it just blank table.
you mean instead of using telus-ffts.slack.com just use slack.com