Skip to content

Commit b8823d3

Browse files
committed
feat: Add XalAppParameters for gamepass (non-beta) and family settings app
1 parent 76affff commit b8823d3

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

xal/src/app_params.rs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,31 @@ impl XalAppParameters {
5959
}
6060
}
6161

62+
pub fn gamepass() -> Self {
63+
Self {
64+
app_id: "000000004c20a908".into(),
65+
title_id: "1016898439".into(),
66+
redirect_uri: "ms-xal-000000004c20a908://auth".into(),
67+
}
68+
}
69+
6270
pub fn gamepass_beta() -> Self {
6371
Self {
6472
app_id: "000000004c20a908".into(),
6573
title_id: "1016898439".into(),
6674
redirect_uri: "ms-xal-public-beta-000000004c20a908://auth".into(),
6775
}
6876
}
77+
78+
/// Family settings is somewhat special
79+
/// Uses default oauth20_desktop.srf redirect uri
80+
pub fn family_settings() -> Self {
81+
Self {
82+
app_id: "00000000482C8F49".into(),
83+
title_id: "1618633878".into(),
84+
redirect_uri: "https://login.live.com/oauth20_desktop.srf".into(),
85+
}
86+
}
6987
}
7088

7189
impl Default for XalAppParameters {
@@ -108,7 +126,6 @@ impl Default for XalClientParameters {
108126
}
109127
}
110128

111-
112129
#[cfg(test)]
113130
mod tests {
114131
use super::*;

0 commit comments

Comments
 (0)