GuidesOAuthDiscord

Discord

This will walk you through the process of setting up Discord OAuth for your Zipline instance.

Create a Discord Application

  1. Go to the Discord Developer Portal.
  2. Click the "New Application" button.
  3. Give your application a name.
  4. Click the "Create" button then click the "OAuth2" tab.
  5. Click the "Add Redirect" button.
  • Make sure the redirect URL is https://<your-zipline-domain>/api/auth/oauth/discord.
    Discord OAuth Redirect
    Discord OAuth Redirect
  1. Copy the "Client ID" and "Client Secret" and save them for later.

Configure Zipline

Set the OAUTH_DISCORD_CLIENT_ID and OAUTH_DISCORD_CLIENT_SECRET environment variables to the values you copied earlier.

OAUTH_DISCORD_CLIENT_ID=1234567890
OAUTH_DISCORD_CLIENT_SECRET=qwertyuiopasdfghjklzxcvbnm

Make sure you have the FEATURES_OAUTH_REGISTRATION environment variable set to true, or none of the endpoints will work.

If you have set up everything correctly, you can now navigate to the login page and click the "Login with Discord" button.

Last updated: 8/5/2023
Edit this page on GitHub