Skip to content

Slack

Members sign in with their Slack account, in the system browser.

ConsoleSlack API apps
Endpoint groupSocial Login
EmailReturned, but not verified — cannot match an existing account
Signs inIn the browser
  1. Open api.slack.com/apps and create an app from scratch, choosing a workspace to develop it in.

  2. Open OAuth & Permissions.

  3. Add the redirect address under Redirect URLs: the string from Memberside → API Keys → Social Login → Slack, which looks like https://yoursite.com/wp-json/memberside/v1/social/callback/slack. Press Save URLs.

  4. Scroll to Scopes and find User Token Scopes — not Bot Token Scopes.

  5. Add openid, profile and email there.

  6. Copy the Client ID and Client Secret from Basic Information → App Credentials.

An app developed in one workspace signs in members of that workspace. To let members of any workspace sign in, turn on Public Distribution under Manage Distribution, which requires the redirect URL to be HTTPS and the app to have no hard-coded workspace tokens.

Why the email cannot match an existing account

Section titled “Why the email cannot match an existing account”

Slack returns an address without asserting it has been verified, so Memberside will not attach a Slack sign-in to an account that already exists by matching it. Existing members should sign in first and link Slack from Social Connects.

Under Memberside → API Keys → Social Login → Slack:

FieldValue
Client IDThe Client ID
Client secretThe Client Secret
SymptomCauseFix
Authorisation succeeds, nothing comes backThe scopes are on the bot tokenMove them to User Token Scopes
“redirect_uri did not match”The URL was added but not savedPress Save URLs
Only your own workspace can sign inThe app is not distributedTurn on Public Distribution
A second account is created for an existing memberSlack’s email is unverified, so matching is refusedHave them sign in first, then link