Skip to content
Last updated

Discord integration

Integrating Discord with Frontegg allows your application to access user profiles, manage guild (server) memberships, read and send messages, and manage webhooks — all through Frontegg's integration layer using Discord OAuth 2.0.


Prerequisites

Create a Discord application

Step 1: Open the Discord developer portal

Go to the Discord Developer Portal and sign in with your Discord account. On the Applications page, click New Application.

Discord developer portal with New Application button highlighted

Step 2: Name your application

In the Create a new app dialog, enter a name for your application (for example, Frontegg Integration). Check the box to agree to the Developer Terms of Service and Developer Policy, then click Create.

Create a new app dialog with name and terms accepted

Step 3: View application details

After creating the application, you are redirected to the General Information page. Here you can see your Application ID and configure other settings.

General Information page showing Application ID

Configure OAuth2

Step 4: Copy your credentials

In the left sidebar, click OAuth2. On this page, you can find your Client ID and Client Secret.

  • Copy the Client ID — it is displayed directly on the page.
  • To get the Client Secret, click Reset Secret and copy the generated value.

Save your Client Secret

Store the Client Secret securely. If you lose it, you will need to reset it, which invalidates the previous secret.

OAuth2 page showing Client ID and Client Secret

Step 5: Configure redirect URIs

Scroll down to the Redirects section. Click Add Another and enter the following redirect URIs:

  • https://YOUR_MCP_GATEWAY_URL/integration-callback

Click Save Changes.

Redirects section with Frontegg callback URIs configured

Step 6: Review available scopes

Scroll down to the OAuth2 URL Generator section to see the list of available scopes. Discord does not require pre-selecting scopes in the developer portal — scopes are requested at authorization time and configured in the Frontegg portal.

The following scopes are available for the Discord integration:

ScopeDescription
identifyAccess user profile information
emailAccess user email address
guildsList user guilds (servers)
guilds.members.readRead guild member information
messages.readRead messages in channels
connectionsAccess user connections
botCreate and manage bot actions
webhook.incomingCreate and manage webhooks

Minimum required scopes

For basic functionality, you need: identify, email, guilds.

OAuth2 URL Generator showing available scopes

Configure the Frontegg portal

Once you have obtained your Client ID and Client Secret from the steps above, enter them in the integration configuration page of the Frontegg portal:

  1. Open the Frontegg portal and navigate to EnvironmentIntegrationsDiscord.
  2. Enter the Client ID and Client Secret in the corresponding fields.
  3. Select the required scopes.
  4. Click Save.

Keep your credentials secure

Never share or commit your Client Secret to version control.

Additional resources