summaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-02-01 00:20:54 -0600
committerLibravatar bigfoot547 <[email protected]>2025-02-01 00:20:54 -0600
commit6a1bb0980facadcc22cbae27f57782050e7924a1 (patch)
treedafdd715f7fc3f42323bd20666bd653a73a30b68 /src/auth.rs
parentdo clippy stuff and change line endings (diff)
random changes
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 7336e64..057cceb 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -87,7 +87,7 @@ macro_rules! create_oauth_client {
}
const AZURE_TOKEN_URL: &str = "https://login.microsoftonline.com/consumers/oauth2/v2.0/token";
-const AZURE_DEVICE_CODE_URL: &str = "https://login.microsoftonline.com/consumers/oauth2/v2.0/token";
+const AZURE_DEVICE_CODE_URL: &str = "https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode";
const NON_AZURE_TOKEN_URL: &str = "https://login.live.com/oauth20_token.srf";
const NON_AZURE_DEVICE_CODE_URL: &str = "https://login.live.com/oauth20_connect.srf";
@@ -241,7 +241,7 @@ impl MsaUser {
return Err(AuthError::Internal("missing xuid for user".into()));
};
- self.xuid = Some(xuid);
+ self.xuid = Some(xuid.to_owned());
self.gamertag = res.get_gamertag().map(|s| s.to_owned());
debug!("Xbox info loaded: (xuid {xuid}, gamertag {})", res.get_gamertag().unwrap_or("<none>"));
@@ -298,8 +298,9 @@ mod test {
xuid: None,
gamertag: None,
player_info: None,
- client_id: ClientId::new("00000000402b5328".into()),
- is_azure_client_id: false,
+ //client_id: ClientId::new("00000000402b5328".into()),
+ client_id: ClientId::new("60b6cc54-fc07-4bab-bca9-cbe9aa713c80".into()),
+ is_azure_client_id: true,
mc_token: None,
xbl_token: None,
refresh_token: None