Prerequisites
- A Slack workspace on the Business+ or Enterprise Grid plan
- An Auth0 tenant (the free tier works)
Set up Slack SSO
In Auth0
Auth0 has a pre-built Slack SSO integration that handles the SAML configuration.Create the SSO integration
Name it and save
Slack, and your Slack Team Name, then select Save:- Business+: your workspace URL slug, such as
your-workspacefromyour-workspace.slack.com - Enterprise Grid: your Grid org slug with the
.enterprisesuffix, such asyour-workspace.enterprise

Configure the Slack SSO integration
In Slack
Open Slack SSO settings
Fill in the SAML fields

Slack Configure SSO dialog with Auth0 values filled in
Set signing and authentication context
- AuthnContextClassRef: keep the default,
urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport - SAML Request Signing: leave unchecked unless your identity provider requires signed requests
- SAML Response Signing: check Sign the Assertion. At least one signing option is required.

SAML signing options
Test and apply
Sign the SAML response (optional)
Signing the assertion alone is secure for most deployments. The assertion carries the user’s identity and authentication claims, so signing it protects the data Slack trusts. Signing the outer response adds a second signature over envelope metadata (issuer, destination,InResponseTo) as defense in depth. The default Auth0 Slack SSO integration signs only the assertion.
Sign the full response only if your security team requires signResponse, for example under an internal SAML hardening policy or compliance control. This requires a custom SAML application in place of the pre-built integration:
Create a custom SAML application
Set signResponse to true
signResponse to true.
Set signResponse to true in the SAML2 addon settings
Use the new endpoint in Slack
Check Tightknit community membership (optional)
With a social connection such as Google or Microsoft, anyone with a valid account can authenticate with Auth0, even if they aren’t a member of your community. Identity providers can’t reject people before the social sign-in completes, so this check runs as a post-login action that calls the Tightknit API. Without it, non-members see a broken Slack sign-in failure instead of a clear message. You need:- a Google or other social connection enabled in Auth0
- a Tightknit API key for your community
In Tightknit Studio
Get your Tightknit API key

Tightknit Studio API Keys page
In Auth0
Create the post-login action
Add secrets to the action

Auth0 Action editor with secrets panel
Deploy and add the action to the Login flow

Auth0 Login Flow with the membership check action attached
Force account selection (optional)
By default, Auth0 may skip its login page by reusing a cached session, and Google may select the last-used account automatically. To make people choose an account every time, run these one-time Management API calls. Get a Management API token from Applications > APIs > Auth0 Management API > API Explorer.Turn off Auth0 session reuse
Force the Google account picker
Test
Sign in as a member
Sign in as a non-member
Check the logs
console.log output appears in the event details.Error codes
When the action redirects to your login page, theerror query parameter sets the message the page shows.
Troubleshooting
Slack shows a broken error page
Slack shows a broken error page
api.redirect.sendUserTo(), not api.access.deny(). deny() sends a failed SAML response that Slack can’t display.Users are signed in without choosing an account
Users are signed in without choosing an account
sso_disabled and upstream_params calls in Force account selection.The member check returns 401 or 403
The member check returns 401 or 403
TIGHTKNIT_API_KEY secret is correct. If needed, create a new key. See API keys.The action doesn't run
The action doesn't run
Slack rejects the SAML response
Slack rejects the SAML response

