> ## Documentation Index
> Fetch the complete documentation index at: https://help.freakhosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Configure Discord Authentication in Rust

> Hardened your community security. Learn how to link your Rust server to Discord to prevent ban evasion and automate player rank synchronization.

## Technical Community Integration: Discord Auth

"Auth-Gated" servers represent the gold standard for high-security, high-integrity Rust communities. By requiring participants to link their Steam profiles to a verified Discord account before they can move or interact with the world, you implement a formidable barrier against automated bot attacks and ban evasion. This system ensures that every survivor in your world is associated with a unique Discord identity, allowing for automated rank synchronization, streamlined support, and enhanced accountability.

<CardGroup cols={2}>
  <Card title="Difficulty" icon="gauge-low">
    Intermediate
  </Card>

  <Card title="Time" icon="clock">
    10 Minutes
  </Card>
</CardGroup>

***

## Technical Infrastructure Prerequisites

Establishing this secure handshake requires the coordination of an Oxide modification and a Discord Application.

<Steps>
  <Step title="Enable Framework Support">
    Verify that **Oxide/uMod** is active on your FREAKHOSTING instance.
  </Step>

  <Step title="Deploy Authentication Logic">
    Install a vetted integration plugin such as `DiscordAuth.cs` or **RustCord** into your `/oxide/plugins/` directory.
  </Step>

  <Step title="Initialize Discord Gateway">
    Visit the [Discord Developer Portal](https://discord.com/developers/applications) and create a **New Application**. Generate a secure **Bot Token** and ensure the "Server Members Intent" is enabled.
  </Step>
</Steps>

***

## The Authentication Handshake

Once the infrastructure is deployed, the player onboarding process follows a specific security sequence.

1. **Session Initialization:** The player connects to the server but remains physically frozen at the spawn coordinates.
2. **Identity Request:** The player executes the `/auth` command within the in-game chat.
3. **Token Generation:** The server generates a unique, time-sensitive 5-digit verification code.
4. **Discord Verification:** The player transmits this code via a Direct Message (DM) to your community's authorized Discord bot.
5. **Session Authorization:** The bot validates the cryptographic link, assigns the appropriate Discord roles, and instantly unfreezes the player's character in-game.

***

## Strategic Security Advantages

<AccordionGroup>
  <Accordion title="Neutralizing Ban Evasion">
    Requiring Discord Auth forces malicious actors to maintain a phone-verified Discord account to access your server. Because high-reputation Discord accounts are significantly more difficult to acquire in bulk compared to fresh Steam accounts, this protocol dramatically reduces the frequency of "Alt-Account" raiding and cheating.
  </Accordion>

  <Accordion title="Automated Rank Synchronization">
    By linking identities, your server can automatically detect a player's Discord status. If a member purchases a VIP rank on your webstore, the system can instantly grant the corresponding in-game kits and permissions without manual administrative intervention.
  </Accordion>
</AccordionGroup>

***

<Note>
  ### Need Extra Help?

  If you encounter any issues, our support team is ready to assist:

  * **Live Chat:** Quick assistance via our website.
  * **Support Ticket:** [Open a Ticket](https://freakhosting.com/clientarea/submitticket.php)
  * **Discord:** [Join our Community](https://discord.gg/freakhosting)
  * **Email:** [support@freakhosting.com](mailto:support@freakhosting.com)
</Note>

<Tip>
  ### Save on Your Hosting

  Ready to get a new server? Use code **KB20** at checkout for **20% off** your first month!
</Tip>

***

<div align="center">
  **Last Updated:** January 2026 | **Rust:** Discord integration active.
</div>
