Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Runtime/Game/LootLockerObfuscator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public ObfuscationDetails(string key, char replacementChar = '*', int visibleCha
private static readonly List<ObfuscationDetails> FieldsToObfuscate = new List<ObfuscationDetails>
{
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"),
Expand Down
34 changes: 17 additions & 17 deletions Runtime/Game/Requests/LootLockerSessionRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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; }
Expand All @@ -292,15 +292,15 @@ 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;
}

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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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; }
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions Runtime/Game/Requests/RemoteSessionRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class LootLockerStartRemoteSessionRequest
/// <summary>
/// The Game Key configured for the game
/// </summary>
public string game_key { get; set; } = LootLockerConfig.current.apiKey;
public string game_api_key { get; set; } = LootLockerConfig.current.apiKey;
/// <summary>
/// The Game Version configured for the game
/// </summary>
Expand All @@ -93,7 +93,7 @@ public class LootLockerRefreshRemoteSessionRequest : LootLockerGetRequest
/// <summary>
/// The api key configured for this game
/// </summary>
public string game_key => LootLockerConfig.current.apiKey?.ToString();
public string game_api_key => LootLockerConfig.current.apiKey?.ToString();
/// <summary>
/// The refresh token used to refresh this session
/// </summary>
Expand Down
Loading