fix(microsoft): remove redundant login steps.

This commit is contained in:
huanghongxun 2021-11-09 00:35:52 +08:00
parent 5b9be471e3
commit db721107ae

View File

@ -136,20 +136,6 @@ public class MicrosoftService {
getUhs(minecraftXstsResponse, uhs);
// Authenticate XBox with XSTS
XBoxLiveAuthenticationResponse xboxXstsResponse = HttpRequest
.POST("https://xsts.auth.xboxlive.com/xsts/authorize")
.json(mapOf(
pair("Properties",
mapOf(pair("SandboxId", "RETAIL"),
pair("UserTokens", Collections.singletonList(xboxResponse.token)))),
pair("RelyingParty", "http://xboxlive.com"), pair("TokenType", "JWT")))
.getJson(XBoxLiveAuthenticationResponse.class);
getUhs(xboxXstsResponse, uhs);
getXBoxProfile(uhs, xboxXstsResponse.token);
// Authenticate with Minecraft
MinecraftLoginWithXBoxResponse minecraftResponse = HttpRequest
.POST("https://api.minecraftservices.com/authentication/login_with_xbox")