From 93bde90aaf1918f0b245f907901fe1cea2b2af0d Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Thu, 22 Oct 2026 17:51:51 +0200 Subject: [PATCH] Launcher: Microsoft sign-in says "Coming soon" while the build has no client ID Co-Authored-By: Claude Opus 5.5 --- docs/microsoft-account.md | 2 +- launcher/src/account.rs | 3 ++- launcher/src/main.rs | 7 +++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/microsoft-account.md b/docs/microsoft-account.md index 61b402211..380aa0785 100644 --- a/docs/microsoft-account.md +++ b/docs/microsoft-account.md @@ -7,7 +7,7 @@ they are. This note is the design, the status of each part and what Ludovic has ## What Ludovic registers (needs his accounts) Nothing below can be done by an agent: the app registrations belong to Ludovic. Until the client ID -is set, the launcher's sign-in shows "Microsoft sign-in is not configured yet" and everything else +is set, the launcher's sign-in shows "Coming soon" ("Microsoft sign-in is coming soon") and everything else works as before. 1. **Azure app registration** (https://portal.azure.com → Microsoft Entra ID → App registrations → diff --git a/launcher/src/account.rs b/launcher/src/account.rs index 44fa96cb6..8958fb3d4 100644 --- a/launcher/src/account.rs +++ b/launcher/src/account.rs @@ -16,7 +16,8 @@ use std::time::{Duration, SystemTime, UNIX_EPOCH}; pub const SERVICE: &str = "dev.playhorizon.launcher"; const SCOPE: &str = "XboxLive.signin offline_access"; pub const NOT_CONFIGURED: &str = - "Microsoft sign-in is not configured yet in this build of the launcher (no client ID)."; + "Microsoft sign-in is coming soon. Until then the game plays offline: single player, \ + LAN and servers in offline mode work."; const SIGN_IN_AGAIN: &str = "Your Microsoft sign-in expired. Sign in again."; /// The Minecraft token is renewed when it has less than this left. const RENEW_BEFORE: u64 = 3600; diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 15cfb79ac..c1184fe10 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -2262,7 +2262,8 @@ impl Launcher { .child(div().child(account::NO_KEYCHAIN)) }; let action = if !configured { - None + // No client ID in this build: the button says what's coming and does nothing. + Some(button("sign-in", "Coming soon", Kind::Ghost, &t).into_any_element()) } else if let Some(SignInState::Code(code)) = &self.sign_in_state { let (uri, user_code) = (code.verification_uri.clone(), code.user_code.clone()); Some( @@ -2309,7 +2310,9 @@ impl Launcher { ) }; n += 1; - let title = if self.accounts.accounts.is_empty() { + let title = if !configured { + "Microsoft account (coming soon)" + } else if self.accounts.accounts.is_empty() { "Microsoft account" } else { "Another account"