> ## Documentation Index
> Fetch the complete documentation index at: https://thenile.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack

> Integrate Slack Single Sign-On with Nile Auth

**1. Setup Slack Developer Portal**

1. Create a [Slack Developer](https://api.slack.com/apps) account.
2. Navigate to the **Your Apps** section and create a new application.
3. Obtain a **Client ID** and **Client Secret** from the [Slack OAuth settings](https://api.slack.com/apps). Be sure to set the redirect URL to your application handling the Nile Auth requests.
   > [accordion] Slack dashboard example
   >
   > ![Discord SSO](https://mintcdn.com/nile/PVqSPvIIF-xsKfJe/images/auth/slackexample.png?fit=max\&auto=format\&n=PVqSPvIIF-xsKfJe\&q=85\&s=30781b3697b955e17954313723dd9f1a)

**2. Save Client ID and Client Secret in Nile**

Save the **Client ID** and **Client Secret** to your database at `console.thenile.dev` under Slack in **Tenants & Users -> Configuration**\\

![Slack configuration on console.thenile.dev](https://mintcdn.com/nile/ZhObK_CvFMgzM-yj/images/singlesignon/slack.png?fit=max\&auto=format\&n=ZhObK_CvFMgzM-yj\&q=85\&s=8d3f87e837921972e6b01ea21f29e4c0)

**3. Add the `Slack` button to your login page**

The button will redirect the user to Slack for authentication. Upon successful authentication, the user will be redirected back to your application.

```jsx theme={null}
import { Slack } from '@niledatabase/react';

function App() {
  return (
    <div>
      <Slack callbackUrl="/" />
    </div>
  );
}
```

## Related Topics

* [OAuth Concepts](https://thenile.dev/docs/auth/concepts/oauth.md)
* [User Management](https://thenile.dev/docs/auth/concepts/users.md)
* [Other SSO Providers](https://thenile.dev/docs/auth/singlesignon/google.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.