From 1ddf56ed6556b990a8c37267430e129098ba866b Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Thu, 23 Jan 2025 18:53:50 -0600 Subject: make auth module --- src/auth.rs | 3 +++ src/launcher/constants.rs | 4 +++- src/lib.rs | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/auth.rs diff --git a/src/auth.rs b/src/auth.rs new file mode 100644 index 0000000..a11c0de --- /dev/null +++ b/src/auth.rs @@ -0,0 +1,3 @@ +struct AuthenticationDatabase { + +} diff --git a/src/launcher/constants.rs b/src/launcher/constants.rs index d2f1b4f..aba0650 100644 --- a/src/launcher/constants.rs +++ b/src/launcher/constants.rs @@ -16,6 +16,8 @@ pub const NATIVES_PREFIX: &str = "natives-"; pub const DEF_INSTANCE_NAME: &'static str = "default"; pub const DEF_PROFILE_NAME: &'static str = "default"; +// https://login.live.com/oauth20_authorize.srf?client_id=00000000402b5328&redirect_uri=ms-xal-00000000402b5328://auth&response_type=token&display=touch&scope=service::user.auth.xboxlive.com::MBI_SSL%20offline_access&prompt=select_account + lazy_static! { pub static ref NATIVES_DIR_PATTERN: Regex = Regex::new("^natives-(\\d+)").unwrap(); -} \ No newline at end of file +} diff --git a/src/lib.rs b/src/lib.rs index 255d914..05c0c7e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,3 +2,4 @@ mod util; pub mod version; pub mod assets; pub mod launcher; +mod auth; -- cgit v1.2.3-70-g09d2