From 35235e4a7ac90f4cdcdf753befb1aff516320eb4 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Wed, 29 Jan 2025 23:16:45 -0600 Subject: wip: use an actual oauth library --- src/auth/msa.rs | 0 src/auth/types.rs | 9 ++++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/auth/msa.rs (limited to 'src/auth') diff --git a/src/auth/msa.rs b/src/auth/msa.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/auth/types.rs b/src/auth/types.rs index 8889b63..79cf84f 100644 --- a/src/auth/types.rs +++ b/src/auth/types.rs @@ -1,5 +1,6 @@ use chrono::{DateTime, Utc}; use multimap::MultiMap; +use oauth2::RefreshToken; use serde::{Deserialize, Serialize}; use uuid::Uuid; @@ -31,9 +32,15 @@ pub struct MsaUser { #[serde(skip_serializing_if = "Option::is_none")] pub profile: Option, pub xuid: Uuid, + + pub(super) client_id: oauth2::ClientId, + + #[serde(default, skip_serializing_if = "std::ops::Not::not")] + pub(super) is_azure_client_id: bool, + pub(super) auth_token: Option, pub(super) xbl_token: Option, - pub(super) refresh_token: Option + pub(super) refresh_token: Option } #[derive(Debug, Serialize, Deserialize)] -- cgit v1.2.3-70-g09d2