Discord OAuth
SmartCAD uses Discord as its only login provider. You need to create a Discord application and configure it before starting the stack.
Create a Discord application
- Go to discord.com/developers/applications and click New Application
- Go to OAuth2 → copy the Client ID and Client Secret
- Under Redirects, add:
https://cad.yourcommunity.com/api/auth/callback/discordReplace cad.yourcommunity.com with your actual domain.
Warning: The redirect URI must match your
BASE_URLexactly - includinghttps://and with no trailing slash.
Get your role IDs
- In Discord, go to User Settings → Advanced and enable Developer Mode
- Go to your server → Server Settings → Roles
- Right-click any role and click Copy Role ID
Role IDs can be configured either in .env before first boot, or at any time from the Community Oversight → Settings admin panel.
See Roles & Permissions for how these map to access levels.