# Discord

:::info
**Note:** This option is supported from v0.78.0 onwards

:::

## Register an application

Head over to the [Discord Developer Portal](https://discord.com/developers/applications/) and create a “New application”, choose a name and accept the terms and conditions.

 ![Choose a name and accept the Discord terms](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/292079f8-0319-4111-bb5b-315e8ae8f14e/3ecae86c-97e3-4fdb-b3de-1d9b70c91591/image.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260909%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260909T013000Z&X-Amz-Expires=86400&X-Amz-Signature=d9e042ed2de3e9f27967424a6b4febc26108b3b231e754b4e23a342be6a41c7b&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =491x317")

## OAuth credentials

In the sidebar under “Settings” click on “OAuth2”.

* Make a note of `Client ID`
* Click on “Reset secret” and make a note of the `Client Secret`
* Under “Redirects” click “Add Redirect” and add a url in the following format:

  `https://<MY SERVER>/auth/discord.callback`

 ![Your redirect should look similar to this](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/292079f8-0319-4111-bb5b-315e8ae8f14e/24780fa8-724c-4c26-ab36-ff23b93b192e/image.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260909%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260909T013000Z&X-Amz-Expires=86400&X-Amz-Signature=d979640e5236ac0b52af0d8f94da48d20c64a1287bb7a85ad3ec3fd93704ece6&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =497x252")

## Configure Outline

Add the values noted from the above process in the following environment variables, once you restart the instance you’ll see a new option to sign-in with Discord.

| Environment variable |     |
|----------------------|-----|
| `DISCORD_CLIENT_ID`  | Obtained from OAuth2 page on Discord |
| `DISCORD_CLIENT_SECRET` | Obtained from OAuth2 page on Discord |
| `DISCORD_SERVER_ID`  | Restrict logins to a specific server (optional, but recommended). You can find a Discord server's  by right-clicking the server icon, and select “Copy Server ID”. |
| `DISCORD_SERVER_ROLES` | Optionally restrict logins to a comma-separated list of role IDs |

---

**Documents**

- [License restrictions](https://docs.getoutline.com/s/hosting/doc/license-restrictions-f9aq6uEL3H)
- [Requirements](https://docs.getoutline.com/s/hosting/doc/requirements-ULdYnwi4wG)
- [Installation methods](https://docs.getoutline.com/s/hosting/doc/installation-methods-pSvgz9j0QC)
- [Configuration](https://docs.getoutline.com/s/hosting/doc/configuration-509J4lAzjo)
- [Business + Enterprise](https://docs.getoutline.com/s/hosting/doc/business-enterprise-rv0715NxO3)
- [Backups](https://docs.getoutline.com/s/hosting/doc/backups-KZtPOADCHG)
- [Troubleshooting](https://docs.getoutline.com/s/hosting/doc/troubleshooting-HXckrzCqDJ)