xbox.webapi.authentication.xal module
Xbox Authentication Library
Authenticate with Windows Live Server and Xbox Live (used by mobile Xbox Apps)
- class xbox.webapi.authentication.xal.XALManager(session, device_id, app_params, client_params)[source]
Bases:
object
- Parameters:
session (SignedSession) –
device_id (UUID) –
app_params (XalAppParameters) –
client_params (XalClientParameters) –
- async refresh_token(refresh_token_jwt)[source]
- Parameters:
refresh_token_jwt (str) –
- Return type:
Response
- async request_sisu_authentication(device_token_jwt, code_challenge, state)[source]
Request Sisu authentication URL
Response holds authentication URL that needs to be called by the user in webbrowser
- async do_sisu_authorization(sisu_session_id, access_token_jwt, device_token_jwt)[source]
Sisu authorization
- Returns:
Response with device-/title-/user-tokens
- Parameters:
- Return type:
- async xsts_authorization(device_token_jwt, title_token_jwt, user_token_jwt, relying_party)[source]
Request additional XSTS tokens for specific relying parties
- Parameters:
- Return type: