Skip to content
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

Can't retrieve user_info and team_info with bot scope #28

Open
AlphaB opened this issue Mar 15, 2016 · 3 comments
Open

Can't retrieve user_info and team_info with bot scope #28

AlphaB opened this issue Mar 15, 2016 · 3 comments

Comments

@AlphaB
Copy link

AlphaB commented Mar 15, 2016

Hi, I'm building a bot application for Slack. The only scope that it requests is bot. And I can't retrieve user_info and team_info because this gem is using token instead of using bot_access_token to retrieve this information. I can make a PR. Should we discuss before I start fixing it?

@jmanian
Copy link

jmanian commented Jun 29, 2016

I just ran into this same problem. Did you ever write a solution @AlphaB?

Our workaround has been to ask for users:read,team:read,bot so that it is able to retrieve user_info and team_info with the token, but this is far from ideal because the user sees a big yellow warning on the Slack auth page as a result.

@AlphaB
Copy link
Author

AlphaB commented Jun 30, 2016

Hi @jmanian. I didn't find any normal solution for this problem. Asking for users:read and team:read can cause some question from Slack team, when they will approve your application to the Slack App Directory. So the simplest solution for me was to use a bot token from omniauth for a simple http request to users.info and team.info methods with Net::HTTP.

@jmanian
Copy link

jmanian commented Jun 30, 2016

It doesn't seem like it would be too tricky to fix. But I'm actually back on the 2.3.0 release with my application, so I need to migrate to the latest code (which looks like it might break some things in my app) before trying to write a fix 😵

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants