Learn how to set up OAuth with Slack
The Slack OAuth integration allows your users to authenticate using their Slack credentials through the “Sign in with Slack” flow.
The configuration process involves creating or configuring a Slack App and setting up OAuth permissions with the client credentials in your WorkOS Dashboard.
When setting up Slack OAuth, WorkOS provides one key piece of information that needs to be configured in your Slack App:
The Redirect URI is available in the WorkOS Dashboard. In the left navigation menu, select the Authentication tab and the OAuth providers sub-tab. Locate the Slack section.
Click Enable. The Slack OAuth configuration dialog will open. Locate the Redirect URI.
The Redirect URI serves as the destination for authentication responses and must be configured in your Slack App’s OAuth & Permissions settings.
You will need to obtain two pieces of information from a Slack App:
The following sections will guide you through creating or configuring a Slack App and generating these credentials.
Navigate to the Slack App management page.
If you don’t already have a Slack App, click Create an App, provide a name, and choose the development workspace where you’ll test.
Once created, open your new Slack App to configure it.
In your Slack App’s settings, go to OAuth & Permissions in the left-hand navigation menu.
Under Redirect URLs, add the Redirect URI from the WorkOS Dashboard.
Click Save URLs to confirm.
Under Scopes, ensure you request the standard OpenID scopes (e.g., openid
, profile
, email
), which Slack requires for Sign in with Slack using OIDC.
Still in your Slack App’s settings, find your Client ID and Client Secret.
Copy both values as you’ll need them for the WorkOS configuration.
Now that you have the Slack Client ID and Slack Client Secret from the previous steps, return to the WorkOS Dashboard.
In the Slack OAuth configuration dialog, enable the integration. Paste the credentials from Slack into their respective fields in the WorkOS Dashboard.
Click Save to complete the configuration.
It’s the same Slack OAuth flow as you could build yourself, but it’s encapsulated within WorkOS SSO. This means you don’t need to build it yourself. In addition to Slack OAuth, you can use WorkOS SSO to support other identity providers, all with a single integration.
You can use the provider
query parameter in the Get Authorization URL API endpoint to support Slack OAuth for any domain. The provider
query parameter should be set to SlackOAuth
.
The standard OpenID scopes (openid
, profile
, email
) are required for Sign in with Slack using OIDC. These scopes provide access to the user’s basic profile information necessary for authentication.