From 2f36e04080deca82174b94d5e2f5eb3216fda05d Mon Sep 17 00:00:00 2001 From: Maximus7474 Date: Wed, 22 Jul 2026 23:35:28 +0200 Subject: [PATCH 1/2] feat(docs): oauth configuration guide --- content/docs/configuration/index.mdx | 4 +++ content/docs/configuration/oauth.mdx | 46 ++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 content/docs/configuration/index.mdx create mode 100644 content/docs/configuration/oauth.mdx diff --git a/content/docs/configuration/index.mdx b/content/docs/configuration/index.mdx new file mode 100644 index 0000000..a3414dc --- /dev/null +++ b/content/docs/configuration/index.mdx @@ -0,0 +1,4 @@ +--- +title: "fxManager Configuration" +description: Learn how to setup fxManager features. +--- diff --git a/content/docs/configuration/oauth.mdx b/content/docs/configuration/oauth.mdx new file mode 100644 index 0000000..d5370d7 --- /dev/null +++ b/content/docs/configuration/oauth.mdx @@ -0,0 +1,46 @@ +--- +title: "OAuth" +description: Setting up OAuth for fxManager. +--- + +import { Step, Steps } from 'fumadocs-ui/components/steps'; +import { Callout } from 'fumadocs-ui/components/callout'; + +# Discord OAuth + + + + ### Create a Discord application. + + 1. Go to the [Discord Developer Portal](https://discord.com/developers/applications) and log in with your Discord account. + 2. Click the **New Application** button in the top right corner. + 3. Enter a name for your application (e.g., `fxManager`), accept the developer terms, and click **Create**. + + + ### Configure Redirect URIs + + 1. On your application's dashboard, navigate to the **OAuth2** tab from the left sidebar. + 2. Under the **Redirects** section, click **Add Redirect**. + 3. Enter your webpanel's callback URL, e.g: + * `https://yourdomain.com/api/auth/callback/discord` + * `https://your_ip:port/api/auth/callback/discord` + + + 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 + + 1. Still under the **OAuth2** tab, locate the **Client Information** section. + 2. Copy your **Client ID**. + 3. 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 + + 1. Open your `fxManager` webpanel settings dashboard, and navigate to the authentication tab. + 2. Paste both your **Client ID** and **Client Secret** into their respective fields. + 3. Enable OAuth integration in the webpanel settings. + + From a9282f5c1dc69f2039543d23fb099fde8c3b4051 Mon Sep 17 00:00:00 2001 From: Maximus7474 Date: Wed, 22 Jul 2026 23:44:44 +0200 Subject: [PATCH 2/2] tweak(docs/configuration): added details on section --- content/docs/configuration/index.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/docs/configuration/index.mdx b/content/docs/configuration/index.mdx index a3414dc..7e9003f 100644 --- a/content/docs/configuration/index.mdx +++ b/content/docs/configuration/index.mdx @@ -2,3 +2,11 @@ title: "fxManager Configuration" description: Learn how to setup fxManager features. --- + +import { Callout } from 'fumadocs-ui/components/callout'; + +Welcome to the configuration hub for `fxManager`. You can review the configuration guides to assist you in setting up your fxManager instance. + + + This documentation is actively expanding. Sections below indicate features currently available or planned for upcoming releases. +