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

check for 'users:read' scope in scopes before making 'users.info' call #18

Conversation

prashanthsadasivan
Copy link
Contributor

Fixes #17

else
set_errors!(conn, [error(user["error"], user["error"])])
case "users:read" in scopes do
false -> conn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to set an error here? I'm not sure how the rest of the module would react to not having a slack user on the conn when it tries to construct the auth struct.

@hassox
Copy link
Member

hassox commented Dec 1, 2017

I think this will break both the credentials and info calls if there is no user present.

@doomspork
Copy link
Member

@prashanthsadasivan / @hassox any updates here?

@acconrad
Copy link
Contributor

acconrad commented Jun 28, 2018

@prashanthsadasivan should probably just close this since #21 is merged?

@doomspork doomspork closed this Jul 10, 2018
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

Successfully merging this pull request may close these issues.

4 participants