[PR #3057] [CLOSED] Add Ely.by account sign-in (launcher and game) #4773

Closed
opened 2026-11-03 05:07:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3057
Author: @Tsifrokayf
Created: 10/28/2026
Status: ❌ Closed

Base: main ← Head: feature/ely-account-sign-in


📝 Commits (2)

  • 7d77d02 Add Ely.by account sign-in to the launcher and the game
  • b103a24 docs: say the maintainer registers the Ely.by app

📊 Changes

17 files changed (+1012 additions, -182 deletions)

View changed files

📝 README.md (+1 -1)
📝 crates/horizon-client/src/auth.rs (+135 -14)
➕ docs/ely-account.md (+85 -0)
📝 docs/launcher-commands.md (+3 -1)
📝 docs/microsoft-account.md (+4 -3)
📝 launcher/README.md (+11 -4)
📝 launcher/lang/fr.json (+11 -5)
📝 launcher/lang/ru.json (+11 -5)
📝 launcher/src/account.rs (+299 -62)
📝 launcher/src/account/tests.rs (+269 -28)
📝 launcher/src/backend.rs (+21 -2)
📝 launcher/src/cli.rs (+23 -10)
📝 launcher/src/main.rs (+55 -22)
📝 launcher/src/mcp.rs (+18 -6)
📝 launcher/src/owner_page.rs (+55 -14)
📝 launcher/src/switch_page.rs (+10 -4)
📝 launcher/tests/owner_gate.rs (+1 -1)

📄 Description

🤖 Opened by Tsifrokayf's AI agent (Claude), not by Tsifrokayf himself.

What

Adds Ely.by as a second account provider in the launcher, ported from ElyPrismLauncher's flow, and makes the game join servers through Ely.by's session server for those accounts.

  • Sign-in: OAuth2 device-code flow at account.ely.by (scope account_info offline_access minecraft_server_session); the access token is the Minecraft session token, refreshed through the refresh token. UI buttons ("Sign in with Ely.by"), account sign-in --ely in the CLI, provider in the MCP tools.
  • Owner gate: an Ely.by account opens Play. It never downloads the game from Mojang: "Download and prepare" stays for Microsoft owners, Ely-only users prepare from their own install.
  • Game: session file gets user_type: "ely"; horizon-client joins through https://authserver.ely.by/session/join (override: HORIZON_ELY_JOIN).
  • Config: needs Horizon's own Ely.by app: HORIZON_ELY_CLIENT_ID (build time or run time, no default; the maintainer must register the app at account.ely.by/dev). Without it no Ely.by button is shown.
  • Docs: docs/ely-account.md, plus README, launcher README and docs/microsoft-account.md; fr/ru translations; docs/launcher-commands.md regenerated.

Limits

  • Ely.by players can't join Mojang-verified servers, and vice versa; the server side (has_joined) is unchanged.
  • No skins/capes for Ely.by accounts yet.
  • Not tested against live Ely.by: device-code endpoints, refresh without a client secret and the join request were written from ElyPrismLauncher's source and Ely.by's docs, and are tested against local mocks.
  • The diff is about 900 lines, over the ~500-line guideline; it can be split into launcher / game / docs if preferred.

Checks

cargo test, cargo clippy -D warnings and cargo fmt --check for the launcher; cargo test -p horizon-client --no-default-features --lib auth:: for the game. tools/pr_ready.py and the parity harnesses were not run (no .local/ data here).

🤖 Generated with Claude Code

https://claude.ai/code/session_013LvjqmfrKxgRsdej8mGrkS


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3057 **Author:** [@Tsifrokayf](https://github.com/Tsifrokayf) **Created:** 10/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/ely-account-sign-in` --- ### 📝 Commits (2) - [`7d77d02`](https://github.com/horizon-rust/horizon/commit/7d77d02fef18dd4d843ae7765acc0ea11c3a2e95) Add Ely.by account sign-in to the launcher and the game - [`b103a24`](https://github.com/horizon-rust/horizon/commit/b103a24dd66e5faf3d31bd30325303a1c585e399) docs: say the maintainer registers the Ely.by app ### 📊 Changes **17 files changed** (+1012 additions, -182 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) 📝 `crates/horizon-client/src/auth.rs` (+135 -14) ➕ `docs/ely-account.md` (+85 -0) 📝 `docs/launcher-commands.md` (+3 -1) 📝 `docs/microsoft-account.md` (+4 -3) 📝 `launcher/README.md` (+11 -4) 📝 `launcher/lang/fr.json` (+11 -5) 📝 `launcher/lang/ru.json` (+11 -5) 📝 `launcher/src/account.rs` (+299 -62) 📝 `launcher/src/account/tests.rs` (+269 -28) 📝 `launcher/src/backend.rs` (+21 -2) 📝 `launcher/src/cli.rs` (+23 -10) 📝 `launcher/src/main.rs` (+55 -22) 📝 `launcher/src/mcp.rs` (+18 -6) 📝 `launcher/src/owner_page.rs` (+55 -14) 📝 `launcher/src/switch_page.rs` (+10 -4) 📝 `launcher/tests/owner_gate.rs` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Tsifrokayf's AI agent (Claude), not by Tsifrokayf himself. ## What Adds Ely.by as a second account provider in the launcher, ported from ElyPrismLauncher's flow, and makes the game join servers through Ely.by's session server for those accounts. - **Sign-in:** OAuth2 device-code flow at account.ely.by (scope `account_info offline_access minecraft_server_session`); the access token is the Minecraft session token, refreshed through the refresh token. UI buttons ("Sign in with Ely.by"), `account sign-in --ely` in the CLI, `provider` in the MCP tools. - **Owner gate:** an Ely.by account opens Play. It never downloads the game from Mojang: "Download and prepare" stays for Microsoft owners, Ely-only users prepare from their own install. - **Game:** session file gets `user_type: "ely"`; `horizon-client` joins through `https://authserver.ely.by/session/join` (override: `HORIZON_ELY_JOIN`). - **Config:** needs Horizon's own Ely.by app: `HORIZON_ELY_CLIENT_ID` (build time or run time, no default; the maintainer must register the app at account.ely.by/dev). Without it no Ely.by button is shown. - Docs: `docs/ely-account.md`, plus README, launcher README and `docs/microsoft-account.md`; fr/ru translations; `docs/launcher-commands.md` regenerated. ## Limits - Ely.by players can't join Mojang-verified servers, and vice versa; the server side (`has_joined`) is unchanged. - No skins/capes for Ely.by accounts yet. - Not tested against live Ely.by: device-code endpoints, refresh without a client secret and the join request were written from ElyPrismLauncher's source and Ely.by's docs, and are tested against local mocks. - The diff is about 900 lines, over the ~500-line guideline; it can be split into launcher / game / docs if preferred. ## Checks `cargo test`, `cargo clippy -D warnings` and `cargo fmt --check` for the launcher; `cargo test -p horizon-client --no-default-features --lib auth::` for the game. `tools/pr_ready.py` and the parity harnesses were not run (no `.local/` data here). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013LvjqmfrKxgRsdej8mGrkS --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:49 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4773
No description provided.