Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sign In With Slack - Invalid scopes: identity.basic, identity.avatar

I've set up my slack app to be installed using Oauth2.0 successfully calling

https://slack.com/oauth/v2/authorize?client_id=<myAppsClientId>&scope=chat:write,commands,incoming-webhook,users:read&user_scope=chat:write,users:read

but when i try to use Sign In With Slack (So user can manage their slack on my web app) I use

https://slack.com/oauth/v2/authorize?scope=identity.basic,identity.avatar&client_id=<myAppsClientId>

The user gets the error on the slack url (before being redirected to my app):

Error details
  Invalid permissions requested
  Invalid scopes: identity.basic, identity.avatar

Since the add to slack and sign in with slack both call the same uri, im assuming the scope params are what separate the two. Not sure where Im going wrong because I followed the docs and used the button they generated for me.

like image 293
slotdp02 Avatar asked Dec 05 '22 08:12

slotdp02


1 Answers

I don't know that this is the correct fix, but I encountered the same issue and I was able to get it working by renaming the 'scope' parameter to 'user_scope'

like image 115
Eric C Avatar answered Dec 25 '22 23:12

Eric C