diff options
Diffstat (limited to 'src/auth.rs')
| -rw-r--r-- | src/auth.rs | 9 |
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 |
