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.
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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With