From c82b6c844b4a5fd1c4708b32641e75b1a781f4e1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Mar 2026 23:37:28 +0000 Subject: [PATCH 1/2] Initial plan From 10593749dd94936b64c8fec22fc8d111288454e8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Mar 2026 23:44:46 +0000 Subject: [PATCH 2/2] Update Yggdrasil auth config docs Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com> Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/9b1c26c4-240d-40de-be7b-ba1174f7e2bd --- docs/guide/configuration.md | 44 +++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/docs/guide/configuration.md b/docs/guide/configuration.md index cf73256b..1876bbaa 100644 --- a/docs/guide/configuration.md +++ b/docs/guide/configuration.md @@ -147,19 +147,49 @@ Coordinate = { x = 145, y = 64, z = 2045 } - **Description:** - This setting is used when `AccountType` is set to `yggdrasil`. It points MCC at the authlib/Yggdrasil server used for login and session checks. + This subsection is used when `AccountType` is set to `yggdrasil`. It points MCC at the authlib/Yggdrasil server used for login, session checks, and profile key requests. - You can provide either just the host name or a `host:port` pair. If the port is omitted, MCC uses `443`. + MCC now writes this as a dedicated TOML subsection instead of an inline table: -- **Type:** `inline table` + ```toml + [Main.General.AuthServer] + ``` -- **Default:** `{ Host = "", Port = 443 }` + `Host` accepts either a plain host name or a `host:port` pair. If you include the port there, MCC updates `Port` to match. + + `AuthlibInjectorAPIPath` defaults to `/api/yggdrasil`. Change it if your authlib-injector server uses a different prefix, such as `/authlib-injector`. + + `UseHttps` defaults to `true`. Set it to `false` if your local or development auth server only exposes plain HTTP. + +- **Type:** `section` + +- **Default:** + + ```toml + [Main.General.AuthServer] + Port = 443 + AuthlibInjectorAPIPath = "/api/yggdrasil" + UseHttps = true + Host = "" + ``` - **Example:** - ``` - AuthServer = { Host = "auth.example.com", Port = 443 } - ``` + ``` + [Main.General.AuthServer] + Host = "auth.example.com" + Port = 443 + AuthlibInjectorAPIPath = "/api/yggdrasil" + UseHttps = true + ``` + + ``` + [Main.General.AuthServer] + Host = "127.0.0.1" + Port = 25585 + AuthlibInjectorAPIPath = "/authlib-injector" + UseHttps = false + ``` #### `AuthUser`