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.
Ok I actually was able to get it to work by NOT using v2 for Sign In With Slack. But I HAD to use v2 for Add to Slack.
So using /oauth/v2/authorize
and /api/oauth.v2.access
for add to slack
and /oauth/authorize
and /api/oauth.access
for signin with slack
I don't think it should work like this but it's the only combo that's working.