diff --git a/Runtime/Game/LootLockerObfuscator.cs b/Runtime/Game/LootLockerObfuscator.cs index 109b07b0..141f63d3 100644 --- a/Runtime/Game/LootLockerObfuscator.cs +++ b/Runtime/Game/LootLockerObfuscator.cs @@ -33,6 +33,8 @@ public ObfuscationDetails(string key, char replacementChar = '*', int visibleCha private static readonly List FieldsToObfuscate = new List { new ObfuscationDetails("game_key", '*', 4, 3, false), + new ObfuscationDetails("game_api_key", '*', 4, 3, false), + new ObfuscationDetails("api_key", '*', 4, 3, false), new ObfuscationDetails("email"), new ObfuscationDetails("password", '*', 0, 0), new ObfuscationDetails("domain_key"), diff --git a/Runtime/Game/Requests/LootLockerSessionRequest.cs b/Runtime/Game/Requests/LootLockerSessionRequest.cs index 2e2e360f..ab5dd9ea 100644 --- a/Runtime/Game/Requests/LootLockerSessionRequest.cs +++ b/Runtime/Game/Requests/LootLockerSessionRequest.cs @@ -31,7 +31,7 @@ public class LootLockerSteamSessionRequest public class LootLockerPlaystationNetworkVerificationRequest { - public string key { get; set; } = LootLockerConfig.current.apiKey; + public string game_api_key { get; set; } = LootLockerConfig.current.apiKey; public string platform { get; set; } = "psn"; public string token { get; set; } public int psn_issuer_id { get; set; } = 256; // Default to production @@ -54,7 +54,7 @@ public class LootLockerSteamSessionWithAppIdRequest : LootLockerSteamSessionRequ [Serializable] public class LootLockerSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string platform { get; set; } public string player_identifier { get; set; } public string game_version => LootLockerConfig.current.game_version; @@ -78,7 +78,7 @@ public LootLockerSessionRequest(string playerIdentifier, LL_AuthPlatforms forPla [Serializable] public class LootLockerWhiteLabelSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string email { get; set; } public string token { get; set; } public string game_version => LootLockerConfig.current.game_version; @@ -235,7 +235,7 @@ public class LootLockerLevel_Thresholds [Serializable] public class LootLockerNintendoSwitchSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string nsa_id_token { get; set; } public string game_version => LootLockerConfig.current.game_version; public LootLockerSessionOptionals optionals { get; set; } = null; @@ -250,7 +250,7 @@ public LootLockerNintendoSwitchSessionRequest(string nsa_id_token, LootLockerSes [Serializable] public class LootLockerEpicSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string id_token { get; set; } public string game_version => LootLockerConfig.current.game_version; public LootLockerSessionOptionals optionals { get; set; } = null; @@ -265,7 +265,7 @@ public LootLockerEpicSessionRequest(string id_token, LootLockerSessionOptionals [Serializable] public class LootLockerEpicRefreshSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string refresh_token { get; set; } public string game_version => LootLockerConfig.current.game_version; public LootLockerSessionOptionals optionals { get; set; } = null; @@ -280,7 +280,7 @@ public LootLockerEpicRefreshSessionRequest(string refresh_token, LootLockerSessi [Serializable] public class LootLockerMetaSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string game_version => LootLockerConfig.current.game_version; public string user_id { get; set; } @@ -292,7 +292,7 @@ public class LootLockerMetaSessionRequest : LootLockerGetRequest [Serializable] public class LootLockerMetaRefreshSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string refresh_token { get; set; } public string game_version => LootLockerConfig.current.game_version; public LootLockerSessionOptionals optionals { get; set; } = null; @@ -300,7 +300,7 @@ public class LootLockerMetaRefreshSessionRequest : LootLockerGetRequest public class LootLockerXboxOneSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string xbox_user_token { get; set; } public string game_version => LootLockerConfig.current.game_version; public LootLockerSessionOptionals optionals { get; set; } = null; @@ -314,7 +314,7 @@ public LootLockerXboxOneSessionRequest(string xbox_user_token, LootLockerSession public class LootLockerGoogleSignInSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string id_token { get; set; } public string game_version => LootLockerConfig.current.game_version; public LootLockerSessionOptionals optionals { get; set; } = null; @@ -343,7 +343,7 @@ public LootLockerGoogleSignInWithPlatformSessionRequest(string id_token, string public class LootLockerGoogleRefreshSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string refresh_token { get; set; } public string game_version => LootLockerConfig.current.game_version; public LootLockerSessionOptionals optionals { get; set; } = null; @@ -384,7 +384,7 @@ public LootLockerGooglePlayGamesRefreshSessionRequest(string refreshToken, LootL public class LootLockerAppleSignInSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string apple_authorization_code { get; set; } public string game_version => LootLockerConfig.current.game_version; public LootLockerSessionOptionals optionals { get; set; } = null; @@ -398,7 +398,7 @@ public LootLockerAppleSignInSessionRequest(string apple_authorization_code, Loot public class LootLockerAppleRefreshSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string refresh_token { get; set; } public string game_version => LootLockerConfig.current.game_version; public LootLockerSessionOptionals optionals { get; set; } = null; @@ -412,7 +412,7 @@ public LootLockerAppleRefreshSessionRequest(string refresh_token, LootLockerSess public class LootLockerAppleGameCenterSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string game_version => LootLockerConfig.current.game_version; public string bundle_id { get; private set; } public string player_id { get; private set; } @@ -436,7 +436,7 @@ public LootLockerAppleGameCenterSessionRequest(string bundleId, string playerId, public class LootLockerAppleGameCenterRefreshSessionRequest : LootLockerGetRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string game_version => LootLockerConfig.current.game_version; public string refresh_token { get; private set; } public LootLockerSessionOptionals optionals { get; set; } = null; @@ -449,7 +449,7 @@ public LootLockerAppleGameCenterRefreshSessionRequest(string refreshToken, LootL } public class LootLockerDiscordSessionRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string access_token { get; set; } public string game_version => LootLockerConfig.current.game_version; public LootLockerSessionOptionals optionals { get; set; } = null; @@ -463,7 +463,7 @@ public LootLockerDiscordSessionRequest(string accessToken, LootLockerSessionOpti public class LootLockerDiscordRefreshSessionRequest { - public string game_key => LootLockerConfig.current.apiKey; + public string game_api_key => LootLockerConfig.current.apiKey; public string refresh_token { get; set; } public string game_version => LootLockerConfig.current.game_version; public LootLockerSessionOptionals optionals { get; set; } = null; diff --git a/Runtime/Game/Requests/RemoteSessionRequest.cs b/Runtime/Game/Requests/RemoteSessionRequest.cs index 56ece827..bfd243e7 100644 --- a/Runtime/Game/Requests/RemoteSessionRequest.cs +++ b/Runtime/Game/Requests/RemoteSessionRequest.cs @@ -71,7 +71,7 @@ public class LootLockerStartRemoteSessionRequest /// /// The Game Key configured for the game /// - public string game_key { get; set; } = LootLockerConfig.current.apiKey; + public string game_api_key { get; set; } = LootLockerConfig.current.apiKey; /// /// The Game Version configured for the game /// @@ -93,7 +93,7 @@ public class LootLockerRefreshRemoteSessionRequest : LootLockerGetRequest /// /// The api key configured for this game /// - public string game_key => LootLockerConfig.current.apiKey?.ToString(); + public string game_api_key => LootLockerConfig.current.apiKey?.ToString(); /// /// The refresh token used to refresh this session ///