Launcher: Microsoft sign-in says "Coming soon" while the build has no client ID
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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 →
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user