Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions xbox/webapi/authentication/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class SisuAuthorizationResponse(PascalCaseModel):
authorization_token: XSTSResponse
web_page: str
sandbox: str
refresh_token: str
use_modern_gamertag: Optional[bool] = None


Expand Down
7 changes: 4 additions & 3 deletions xbox/webapi/authentication/xal.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ async def request_sisu_authentication(
resp.headers["X-SessionId"],
)

async def do_sisu_authorization(
self, sisu_session_id: str, access_token_jwt: str, device_token_jwt: str
async def do_sisu_authorization(
self, sisu_session_id: str, access_token_jwt: str, device_token_jwt: str, refresh_sisu:str
) -> SisuAuthorizationResponse:
"""
Sisu authorization
Expand All @@ -250,14 +250,15 @@ async def do_sisu_authorization(
"SiteName": "user.auth.xboxlive.com",
"SessionId": sisu_session_id,
"ProofKey": self.session.request_signer.proof_field,
"refresh_token": refresh_sisu,
}

resp = await self.session.send_signed(
"POST", url, headers=headers, json=post_body
)
resp.raise_for_status()
return SisuAuthorizationResponse(**resp.json())

async def xsts_authorization(
self,
device_token_jwt: str,
Expand Down