Skip to main content

Aghanim-Discord Login Integration

This guide explains how to integrate Aghanim with Discord OAuth2 to enable users to authenticate using their Discord accounts when accessing your game hub.

Requirements

  • A Discord Developer Account.
  • A registered Discord application with OAuth2 configured.
  • Client ID for your Discord application.

Step 1: Get Your Discord Application Client ID

If you already have a Discord application set up for your game, you can skip the application creation and simply locate your existing Client ID.

  1. Go to the Discord Developer Portal.
  2. If you need to create a new application:
    • Click New Application
    • Enter an application name and click Create
    • Navigate to the OAuth2 tab
    • Add your authorized redirect URIs:
      https://<GAME_HUB_DOMAIN>/oauth2/discord/callback
      Replace <GAME_HUB_DOMAIN> with your game hub's domain (e.g., demo.aghanim.com)
  3. Copy the Client ID for use in the next step.
Discord Login
Discord Login

Step 2: Configure the Integration in Aghanim

  1. Go to the Aghanim Dashboard → Aghanim ConnectDiscord Login.
  2. Fill in Client ID – your Discord application Client ID from the previous step.
  3. Click the Install button to enable the integration.
Discord Login
Discord Login

Step 3: Configure the Login Method on the Game Hub

  1. Navigate to GameSettings in the Aghanim dashboard.
  2. Under Game hub login look & feel, click the Login methods dropdown.
  3. Select Discord from the list of login options.
  4. Click Save changes.
Discord Login
Discord Login

Step 4: Set Up Player Verification

Set up player verification by following the Social Authentication guide.

Once configured, users will be able to sign in to your hub using their Discord account credentials.

Need help?
Contact our integration team at integration@aghanim.com