Overview
The Sign in with Slack integration is ideal for AI agents that need to participate in team communications, automate workflows, or provide intelligent assistance within Slack workspaces. This connection provides access to messages, channels, and workspace data.Configuration
1
Set up a Slack app
- Sign up for a Slack Developer account.
- If you haven’t already, create a Slack App. Choose the From scratch option, give it a name and choose a workspace.
- Once your app is created, copy the Client ID and Client Secret.
- In the OAuth & Permissions section on the left side navigation, do
the following:
- Under OAuth Tokens, opt in for token rotation so that the app supports refresh tokens.
- Under Redirect URLs, add
https://YOUR_AUTH0_DOMAIN/login/callback
as a new Redirect URL.You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains. - Under Scopes, add the necessary OAuth scopes your app needs to function.
2
Configure the Slack Social Connection in Auth0
- In the Auth0 Dashboard, navigate to Authentication > Social. Select Create Connection and then Sign in with Slack. Click Continue.
- In General, enter the Client ID and Client Secret from the Slack OAuth app you created.
- In Advanced, toggle Enable Token Vault. This allows the connection to retrieve and store access tokens for third-party APIs securely. To learn more, read Configure Token Vault.
- Click Create.
- After saving, go the Applications tab and select the applications that should use this connection.
Token Vault configuration Example
To configure the Token Vault for your GitHub connection, you can use the following code snippet in your application:Account linking
If you want to use more than one connection for a user, you can link their accounts. This allows the user to log in with any of their linked accounts and have a single user profile in your application. This allows calling APIs from different providers with a single user profile. Learn more about Client-initiated account linking.Learn more
- Auth0’s Token Vault organizes the access and refresh tokens of federated connections in secure tokensets. Applications can then access the Token Vault to retrieve access tokens to call third-party APIs. To learn more, read Configure Token Vault.
- Learn how to get an access token to make a tool call by completing the Call other’s APIs on user’s behalf quickstart.