-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not_Authed Issue with Token Parameter vs Header Authorization Bearer #268
Comments
https://api.slack.com/web#authentication does indicate that while a bearer token is preferred &Token = should work. The format of my original token And new token So perhaps this might be a bug in Slack not allowing the proper length in their parameter. |
Received a response from Slack Tech Support than Token is no longer supported for newly created apps. https://api.slack.com/changelog/2021-02-24-how-we-broke-your-slack-app Web API method authentication changes Here's what you need to know. |
I believe I encountered this problem as well trying to post a message using a newly created app. Calls to SlackClient.PostMessage result in a PostMessageResponse with error 'invalid_auth'. Using the 'Tester' tab on the Slack website (https://api.slack.com/methods/chat.postMessage/test) works fine for the new app. |
Pull request is created. |
Thanks for the PR @ifonya105 . I also walked into this issue today. Good to see someone had taken the time to investigate and fix :-). Hope it will be merged soon! |
Yep.. blocking issue. First experience with C# and slack today, and this really killed it. At least there is a fix :) |
Yesterday was also my first attempt at Slack integration with C#. Also blocked. |
Pull request is approved. |
All requests result in a not_authed result. My existing code was working until I had to delete and recreate an app in Slack due to a user change. I have noticed that the BOT token is now longer.
Using the Slack API tester, I can successfully post a message to a channel. I compared what is sent in the Slack API test with what is being sent through the "SlackAPI" in C# using Fiddler. I found that Token is being used as a parameter versus using the recommended Authorization Bearer as an HTTP header.
Can SlackAPI be adjusted to use the Authorization Bearer?
The text was updated successfully, but these errors were encountered: