xbox.webapi.scripts.xal module
Example scripts that performs XBL authentication via XAL
- class xbox.webapi.scripts.xal.XALStore(*, sisu, device_id, app_params, client_params)[source]
Bases:
BaseModel
Used to store/load authorization data
- Parameters:
sisu (SisuAuthorizationResponse) –
device_id (UUID) –
app_params (XalAppParameters) –
client_params (XalClientParameters) –
- app_params: XalAppParameters
- client_params: XalClientParameters
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'app_params': FieldInfo(annotation=XalAppParameters, required=True), 'client_params': FieldInfo(annotation=XalClientParameters, required=True), 'device_id': FieldInfo(annotation=UUID, required=True), 'sisu': FieldInfo(annotation=SisuAuthorizationResponse, required=True)}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- xbox.webapi.scripts.xal.user_prompt_authentication(auth_url)[source]
Handles the auth callback when user is prompted to authenticate via URL in webbrowser
Takes the redirect URL from stdin