Reputation: 31
I am using slack oauth api and has url like
https://slack.com/oauth/authorize?client_id=MY_CLIENT_ID&redirect_uri=MY_REDIRECT_URL&team=TEAM_ID&scope=identify%20client&state=unused
It works fine but if i have any other slack workspace say abc opened in the same browser it redirects to
https://abc.slack.com/oauth/authorize?client_id=MY_CLIENT_ID&redirect_uri=MY_REDIRECT_URL&team=TEAM_ID&scope=identify%20client&state=unused
and return error OAuth Error: invalid_team_for_non_distributed_app
Upvotes: 1
Views: 990
Reputation: 3261
You must go into slack settings go to Manage Distribution and enable public distribution
Upvotes: 1