yannickglt / alfred-slack

The Slack workflow for Alfred app
GNU General Public License v2.0
330 stars 31 forks source link

OAuth Error: Invalid client_id parameter #45

Closed dwillitzer closed 5 years ago

dwillitzer commented 5 years ago

Filling out required information https://yannickglt.github.io/alfred-slack/ slack returns OAuth Error: Invalid client_id parameter. I have double checked everything is correct, but still can't proceed. Please advise?

yannickglt commented 5 years ago

What's your team name? Does it contain special characters?

dwillitzer commented 5 years ago

No. All alphabetical characters a-z

On Feb 1, 2019, at 3:57 AM, Yannick Galatol notifications@github.com wrote:

What's your team name? Does it contain special characters?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dwillitzer commented 5 years ago

CanopyDigital

On Feb 1, 2019, at 3:57 AM, Yannick Galatol notifications@github.com wrote:

What's your team name? Does it contain special characters?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

yannickglt commented 5 years ago

Could you copy the URL of the page displaying this error?

dwillitzer commented 5 years ago

error OAuth Error: Invalid client_id parameter

decoded-url

https://slack.com/oauth/authorize?client_id=‪‬5200166808.540275786487&scope=channels:history channels:write channels:read chat:write:bot chat:write:user groups:history groups:read groups:write files:read files:write:user im:history im:read im:write search:read stars:read team:read users.profile:write users:read users:write&team=canopydigital&redirect_uri=https://yannickglt.github.io/alfred-slack/?client_id=‪‬5200166808.540275786487

encoded-url

https://slack.com/oauth/authorize?client_id=%E2%80%AA%E2%80%AC5200166808.540275786487&scope=channels%3Ahistory%20channels%3Awrite%20channels%3Aread%20chat%3Awrite%3Abot%20chat%3Awrite%3Auser%20groups%3Ahistory%20groups%3Aread%20groups%3Awrite%20files%3Aread%20files%3Awrite%3Auser%20im%3Ahistory%20im%3Aread%20im%3Awrite%20search%3Aread%20stars%3Aread%20team%3Aread%20users.profile%3Awrite%20users%3Aread%20users%3Awrite&team=canopydigital&redirect_uri=https%3A%2F%2Fyannickglt.github.io%2Falfred-slack%2F%3Fclient_id%3D%E2%80%AA%E2%80%AC5200166808.540275786487
yannickglt commented 5 years ago

After comparing to my own app client ID, I think I found why the client ID sounds invalid.

The encoded URL lets appear some invalid characters (which are not visible on the decoded URL but which are still present as they will appear again after URL encoding): client_id=%E2%80%AA%E2%80%AC5200166808.540275786487. If I'm right then, your client ID is 5200166808.540275786487.

I suggest you to try the same URL after removing the invalid chars and give it a new try:

https://slack.com/oauth/authorize?client_id=5200166808.540275786487&scope=channels:history%20channels:write%20channels:read%20chat:write:bot%20chat:write:user%20groups:history%20groups:read%20groups:write%20files:read%20files:write:user%20im:history%20im:read%20im:write%20search:read%20stars:read%20team:read%20users.profile:write%20users:read%20users:write&team=canopydigital&redirect_uri=https://yannickglt.github.io/alfred-slack/?client_id=5200166808.540275786487

Let me know if that solution works.

anubhavcodes commented 5 years ago

@yannickglt I have the same problem but the solution is not working for me. Any pointers?

yannickglt commented 5 years ago

You are on another client ID right? Can you paste the encoded URL please?

anubhavcodes commented 5 years ago

@yannickglt My bad, I did not save the redirect urls in my slack app settings. I got the token! 👍

yannickglt commented 5 years ago

OK thanks for reporting.