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
Getting "500: Unable to exchange external code" when using signInWithOAuth for Slack #1294
Comments
Hi @betocmn, thanks for bringing this to our attention, it seems like the OAuth API we use for slack has been moved to "Legacy" and they now have a V2 API. Some of the fields passed into the
Removing these scopes will allow the oauth2.0 flow to succeed, although it might not return a provider access token with the full set of permissions you want. We can put this on the roadmap but it's not going to be prioritised because the team is quite tight on bandwidth right now. |
If you want to use the legacy bot APIs, it only accepts the "bot" scope. See https://api.slack.com/authentication/token-types#bot for reference |
@kangmingtay what's the current status of this issue? |
Would love an update here as well @kangmingtay thank you! |
The team is busy with other priorities. Feel free to submit a PR to get yourselves unblocked and we'll prioritize reviews. |
Just a heads up but after June 4, 2024, Slack will no longer allow users to create legacy apps |
This is preventing us from building on Supabase (we require modern Slack OAuth) - is there any update on when this will be prioritized or could you point me where in code to start looking and I may look into a PR? |
Bug report
Describe the bug
When using the simple "Sign in with Slack" things work normally. If I customise the request to add certain required query_params, then I get these two error messages:
"server response missing access_token"
"500: Unable to exchange external code"
Here's an example of the full error response:
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Set the below to the onClick of a button.
Expected behavior
The login should succeed which would also install the slack app on this user's slack workplace.
Screenshots
This is the authorise screen on Slack that still works. But after clicking to "allow" we get the errors mentioned on the top.
System information
Additional context
If you remove the entire "queryParams" from the code above , then everything works.
The text was updated successfully, but these errors were encountered: