OAuth
Setting up OAuth for fxManager.
Discord OAuth
Create a Discord application.
- Go to the Discord Developer Portal and log in with your Discord account.
- Click the New Application button in the top right corner.
- Enter a name for your application (e.g.,
fxManager), accept the developer terms, and click Create.
Configure Redirect URIs
- On your application's dashboard, navigate to the OAuth2 tab from the left sidebar.
- Under the Redirects section, click Add Redirect.
- Enter your webpanel's callback URL, e.g:
https://yourdomain.com/api/auth/callback/discordhttps://your_ip:port/api/auth/callback/discord
Redirect URI Mismatch
Make sure that your redirect URI matches precisely between the Discord Developer Portal and your webpanel configuration to avoid redirect_uri_mismatch errors during authentication.
Copy Credentials
- Still under the OAuth2 tab, locate the Client Information section.
- Copy your Client ID.
- Click Reset Secret to generate your Client Secret, and copy it securely (make sure to save it, as Discord won't show it again).
Configure fxManager Webpanel
- Open your
fxManagerwebpanel settings dashboard, and navigate to the authentication tab. - Paste both your Client ID and Client Secret into their respective fields.
- Enable OAuth integration in the webpanel settings.