Discord

Note: This option is supported from v0.78.0 onwards

Register an application

Head over to the Discord Developer Portal and create a “New application”, choose a name and accept the terms and conditions.

Choose a name and accept the Discord terms

Choose a name and accept the Discord terms

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

Your redirect should look similar to this

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