Skip to content

OAuth providers

Discord

Set up Discord OAuth for user identity, server data, and messaging

Connect your users to Discord for identity verification, server membership data, and messaging integrations.

PropertyValue
Provider IDdiscord
CategoryCommunication
PKCESupported
Token refreshAutomatic
Redirect URIShown in Developer Portal

Go to the Discord Developer Portal

Navigate to discord.com/developers/applications and sign in.

Create a new application

Click New Application, enter a name, and click Create.

Configure OAuth2

In the left sidebar, click OAuth2. Under Redirects, add the Alter callback URL from the Developer Portal.

Get credentials

Copy the Client ID and Client Secret from the OAuth2 page.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Discord provider

Go to OAuth Providers > Add Provider > Discord.

Enter credentials

  • Client ID: Paste your Discord Client ID
  • Client Secret: Paste your Discord Client Secret

Select scopes

Choose the scopes the application needs.

Save

Click Save. The provider is now active.

ScopeDescription
identifyView the user’s username, avatar, and banner
emailView the user’s email address
guildsView the servers the user is a member of
guilds.joinAdd the user to a server
guilds.members.readView the user’s member info in servers
messages.readRead messages from all client channels (local RPC server API access)
botAdd a bot to a server (requires bot user)
connectionsView the user’s linked third-party accounts
webhook.incomingCreate incoming webhooks in servers
  • The messages.read scope is part of the local RPC server API, which is in private beta and requires Discord approval.
  • For most user-facing integrations, identify and email are sufficient.
  • See the Discord OAuth2 documentation for more details.