To configure your global Slack OAuth integration, you’ll need two pieces of information from WorkOS and two pieces of information from Slack.
From WorkOS:
A Redirect URI specific to Slack. This is where Slack will redirect users after they authenticate.
The Slack provider toggled on in the WorkOS Dashboard.
From Slack:
A Client ID
A Client Secret
Once you’ve finished configuration, users can authenticate into your application using their Slack accounts.
What WorkOS Provides
Within the WorkOS Dashboard, under Authentication, locate the Slack integration. There, you’ll find the Redirect URI. After Slack completes the OAuth flow, it sends users (along with an authorization code) back to this URI.
If you don’t already have a Slack App, click Create New App, provide a name, and choose the development workspace where you’ll test.
Once created, open your new Slack App to configure it.
2. Configure OAuth & Permissions
In your Slack App’s settings, go to OAuth & Permissions on the left-hand sidebar.
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.
3. Retrieve Slack Credentials
Still in your Slack App’s settings, find your Client ID and Client Secret.
Copy both values, as you’ll need to add them to WorkOS in the next step.
4. Provide Slack Credentials to WorkOS
In the WorkOS Dashboard, go to Authentication and scroll down to the Slack integration.
Click Edit.
Paste in the Client ID and Client Secret from your Slack App.
Toggle Enabled on if it’s not already.
Save your changes.
5. Test Your Sign in with Slack Flow
Once you’ve configured everything:
In your application, initiate the OAuth flow for Slack by directing users to WorkOS, specifying SlackOAuth as the provider.
WorkOS will redirect users to Slack’s sign-in screen.
After successful authentication, Slack returns users to the WorkOS redirect URI along with an authorization code.
WorkOS finalizes the authentication, and your application receives the user’s Slack profile information.
You’re now ready to authenticate users with Slack in your production or development environment.
After completing these steps, your “Sign in with Slack” integration through WorkOS should be fully functional. If you need further guidance on scopes, token rotation, or JWT validation, see Slack’s Sign in with Slack documentation and the WorkOS SSO documentation.