Sign-in
Discord
Turn on Sign in with Discord.
Users sign in with their Discord account and link it to Steam once. Auto Tournament asks Discord for the identify and email scopes. Set up Steam first. See Sign-in providers for how linking and admin access work.
Create a Discord application
- Open the Discord Developer Portal and sign in.
- Click New Application.
- Enter a name, for example
Auto Tournament. Users see this name when they sign in. - Tick the box to agree to the Developer Terms of Service and Developer Policy, then click Create.
- In the left menu, click OAuth2.
- Under Client information, copy the Client ID.
- Click Reset Secret, confirm, and copy the Client Secret. Discord shows it only once.
Add the redirect URL
On the same OAuth2 page, under Redirects, click Add Redirect and enter:
FRONTEND_BASE_URL/api/auth/discord/callbackFor example https://tournament.example.com/api/auth/discord/callback. Click Save Changes.
Add the values to .env
AUTH_DISCORD_ENABLED=true
DISCORD_CLIENT_ID=123456789012345678
DISCORD_CLIENT_SECRET=your-discord-client-secretThe button only appears when all three are set.
Restart the app
docker compose up -d --force-recreate matchzy-tournamentTest the button
- Open
FRONTEND_BASE_URL/loginin a private browser window. - Click Sign in with Discord and approve the request in Discord.
- The first time, you see Connect your Steam account. Click Connect with Steam and sign in with Steam.
- Sign out, then click Sign in with Discord again. You are now signed in as your Steam account without the Steam step.
If Discord shows "Invalid OAuth2 redirect_uri", the redirect URL in step 2 does not match FRONTEND_BASE_URL exactly.