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

Cannot use Slack oauth.v2 endpoints #52

Open
joffreyvillard opened this issue Sep 4, 2020 · 4 comments
Open

Cannot use Slack oauth.v2 endpoints #52

joffreyvillard opened this issue Sep 4, 2020 · 4 comments

Comments

@joffreyvillard
Copy link

joffreyvillard commented Sep 4, 2020

Description

When configuring a "Custom Social Connection" for Slack, using oauth.v2 URLs brings in the end the following error (Slack side):

Invalid permissions requested
Invalid scopes: identity.basic, identity.email

As noticed elsewhere (e.g. https://stackoverflow.com/questions/61150208/sign-in-with-slack-invalid-scopes-identity-basic-identity-avatar), scope parameter should be passed under the user_scope name (see also https://api.slack.com/docs/sign-in-with-slack#sign-in-with-slack__details__set-up-your-sign-in-with-slack-button - where the example is correct but the table is not!)

Would it be possible to customize the name of this parameter from the UI?

Reproduction

Set a "Custom Social Connection" with the following elements:
image

Clicking on "Sign in with Slack" on the login page ends up with the following error:

image

Environment

The one directly available via the Extensions in Auth0.

@TiboC
Copy link

TiboC commented Sep 21, 2020

I am interested too.

@theterra
Copy link

+1

@kartikay18
Copy link

Has there been any update to this? I am facing the same issue.

@arellaTV
Copy link

arellaTV commented Mar 7, 2022

In case it helps anyone, I solved this issue by manually updating the social connection with the Management API.

I did a PATCH /api/v2/connections/{id} with the following body:

{
  "options": {
    "scope": "{INSERT_SCOPES}",
    "icon_url": "https://cdn.auth0.com/marketplace/catalog/content/assets/creators/slack/slack-avatar.png",
    "tokenURL": "https://slack.com/api/oauth.v2.access",
    "client_id": "{INSERT_CLIENT_ID}",
    "authParams": {
      "user_scope": "{INSERT_USER_SCOPES}"
    },
    "client_secret": "{INSERT_CLIENT_SECRET}",
    "authorizationURL": "https://slack.com/oauth/v2/authorize"
  },
  "is_domain_connection": false
}

The authParams parameter should let you add the user_scope property. Make sure you also update your fetchUserProfileScript either through the API or through the dashboard.

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

No branches or pull requests

5 participants