[GH-ISSUE #1270] Support Alternative Authentication Providers #318

Closed
opened 2026-11-02 15:38:08 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1270

The idea: Add native support for alternative authentication providers in Horizon, similar to Alternative Authentication.

Why: This would allow players to use third-party authentication services such as Ely.by and custom Yggdrasil-compatible servers alongside official Microsoft authentication, improving compatibility with servers that use alternative account systems.

How it could work: Add an authentication provider selector, custom authentication endpoints, and multi-account management directly into Horizon, with secure token storage and support for skins, capes, and player profiles from each provider.

Reported on Discord by Lumi Lynx in #horizon-ideas · Discord thread
Tags: launcher, other, multiplayer

👍 **5** on Discord

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1270 > **The idea:** Add native support for alternative authentication providers in Horizon, similar to [Alternative Authentication](https://github.com/GGSkyOne/alternative-authentication). > > **Why:** This would allow players to use third-party authentication services such as Ely.by and custom Yggdrasil-compatible servers alongside official Microsoft authentication, improving compatibility with servers that use alternative account systems. > > **How it could work:** Add an authentication provider selector, custom authentication endpoints, and multi-account management directly into Horizon, with secure token storage and support for skins, capes, and player profiles from each provider. Reported on Discord by **Lumi Lynx** in #horizon-ideas · [Discord thread](https://discord.com/channels/1559227979002028052/1562904326349787187) Tags: launcher, other, multiplayer <!-- kira:votes -->👍 **5** on Discord <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:38:08 +07:00
Author
Owner

@ludovic111 commented on GitHub (Oct 26, 2026):

Claimed by Kacper on Discord, to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1270).

<!-- gh-comment-id:6416058922 --> @ludovic111 commented on GitHub (Oct 26, 2026): Claimed by `Kacper` on Discord, to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1270). <!-- kira:work -->
Author
Owner

@dacrab commented on GitHub (Oct 29, 2026):

🤖 Agent: written by dacrab's AI agent (OpenCode, DeepSeek V4.1 Flash 1017), not by dacrab himself.

I'm not claiming this issue — it's marked in progress and claimed on Discord — so this is a plan to review, not a
claim. I read the launcher's account code and Ely.by's docs and wrote down what a second provider would actually
touch: docs/alt-accounts.md (PR #3680, docs only).

The short version:

  • Provider on Account, Microsoft as the serde default so existing accounts.json files and keychain items
    keep working; keys become (provider, uuid) because two providers can issue the same UUID.
  • Two sign-in ways. Ely.by recommends OAuth 2.0 (minecraft_server_session, offline_access) with a browser
    and a loopback redirect, which needs an OAuth app registered by the project and PKCE/public-client support
    confirmed. The Yggdrasil route (https://authserver.ely.by/auth/authenticate, :TOTP in the password field,
    /auth/refresh, /auth/validate, /auth/invalidate) is one client for Ely.by, Blessing Skin, Drasl and
    LittleSkin. The plan starts with Yggdrasil because it is generic, and adds OAuth later without changing the
    account model.
  • Session join is one file's worth of change in the game: the launcher writes the provider and its session URL
    into the session file, and join_server POSTs the same authlib body to the provider's POST /session/join
    instead of Mojang's. No authlib-injector, no JVM, no patched jars.
  • Textures are the same textures property shape skins.rs already decodes; what changes is the allowed
    texture host per provider and the signature rule (Ely.by signs with its own key, and Cg== means "do not check").
  • The owner gate is the real question, not the code: a Yggdrasil account cannot own Java Edition. The plan
    recommends it behave like a named offline identity — Play only with "Play without a Microsoft account" on — so
    the gate and Mojang downloads keep meaning what they say. The alternative (a provider account passes Play by
    itself) is a policy change for @ludovic111, not something I should pick.

Also in the plan: pinned provider origins (a custom origin receives the player's password), tokens only in the
keychain, Horizon-hosted servers gaining a session_server setting so they can verify provider players
(online_mode currently asks Mojang), and M1/M2/M3 milestones with tests against a fake Yggdrasil server.

Separately, offline play itself is now an opt-in in the launcher (Settings > Account > Play without a Microsoft
account, off by default) in PR #3681. It does not depend on this issue.

Happy to hand the plan to the claimant, review their implementation, or build M1 if nobody is on it — whichever
you prefer.

<!-- gh-comment-id:6496873281 --> @dacrab commented on GitHub (Oct 29, 2026): 🤖 Agent: written by dacrab's AI agent (OpenCode, DeepSeek V4.1 Flash 1017), not by dacrab himself. I'm not claiming this issue — it's marked in progress and claimed on Discord — so this is a plan to review, not a claim. I read the launcher's account code and Ely.by's docs and wrote down what a second provider would actually touch: **docs/alt-accounts.md** (PR #3680, docs only). The short version: - **Provider on `Account`**, `Microsoft` as the serde default so existing `accounts.json` files and keychain items keep working; keys become `(provider, uuid)` because two providers can issue the same UUID. - **Two sign-in ways.** Ely.by recommends OAuth 2.0 (`minecraft_server_session`, `offline_access`) with a browser and a loopback redirect, which needs an OAuth app registered by the project and PKCE/public-client support confirmed. The Yggdrasil route (`https://authserver.ely.by/auth/authenticate`, `:TOTP` in the password field, `/auth/refresh`, `/auth/validate`, `/auth/invalidate`) is one client for Ely.by, Blessing Skin, Drasl and LittleSkin. The plan starts with Yggdrasil because it is generic, and adds OAuth later without changing the account model. - **Session join is one file's worth of change in the game**: the launcher writes the provider and its session URL into the session file, and `join_server` POSTs the same authlib body to the provider's `POST /session/join` instead of Mojang's. No authlib-injector, no JVM, no patched jars. - **Textures** are the same `textures` property shape `skins.rs` already decodes; what changes is the allowed texture host per provider and the signature rule (Ely.by signs with its own key, and `Cg==` means "do not check"). - **The owner gate** is the real question, not the code: a Yggdrasil account cannot own Java Edition. The plan recommends it behave like a named offline identity — Play only with "Play without a Microsoft account" on — so the gate and Mojang downloads keep meaning what they say. The alternative (a provider account passes Play by itself) is a policy change for @ludovic111, not something I should pick. Also in the plan: pinned provider origins (a custom origin receives the player's password), tokens only in the keychain, Horizon-hosted servers gaining a `session_server` setting so they can verify provider players (`online_mode` currently asks Mojang), and M1/M2/M3 milestones with tests against a fake Yggdrasil server. Separately, offline play itself is now an opt-in in the launcher (Settings > Account > Play without a Microsoft account, off by default) in PR #3681. It does not depend on this issue. Happy to hand the plan to the claimant, review their implementation, or build M1 if nobody is on it — whichever you prefer.
Author
Owner

@ludovic111 commented on GitHub (Oct 29, 2026):

🤖 Agent: closing as not planned. Horizon signs in only with Microsoft accounts that own Minecraft: Java Edition, following Mojang's rules, so other account providers won't be added.

<!-- gh-comment-id:6497494271 --> @ludovic111 commented on GitHub (Oct 29, 2026): 🤖 Agent: closing as not planned. Horizon signs in only with Microsoft accounts that own Minecraft: Java Edition, following Mojang's rules, so other account providers won't be added.
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#318
No description provided.