From 3847ee328338ffad96ba1e48b7fc2c03ba4d50bc Mon Sep 17 00:00:00 2001 From: LossyDragon Date: Wed, 18 Oct 2023 10:32:50 -0500 Subject: [PATCH] Deprecate WebAPIUserNonce in logon, and MachineAuth callback --- .../_5steamguard/SampleSteamGuardRememberMe.java | 5 +++++ .../steam/handlers/steamuser/MachineAuthDetails.java | 3 +++ .../javasteam/steam/handlers/steamuser/SteamUser.java | 2 ++ .../steam/handlers/steamuser/callback/LoggedOnCallback.java | 3 +++ 4 files changed, 13 insertions(+) diff --git a/javasteam-samples/src/main/java/in/dragonbra/javasteamsamples/_5steamguard/SampleSteamGuardRememberMe.java b/javasteam-samples/src/main/java/in/dragonbra/javasteamsamples/_5steamguard/SampleSteamGuardRememberMe.java index f5e864f8..7a9dec39 100644 --- a/javasteam-samples/src/main/java/in/dragonbra/javasteamsamples/_5steamguard/SampleSteamGuardRememberMe.java +++ b/javasteam-samples/src/main/java/in/dragonbra/javasteamsamples/_5steamguard/SampleSteamGuardRememberMe.java @@ -57,6 +57,11 @@ // 2. logon to account using username, password, and sha-1 hash of the sentry file /** + * This sample is obsolete. Check out + * {@link in.dragonbra.javasteamsamples._1logon.SampleLogonAuthentication } + * and {@link in.dragonbra.javasteamsamples._1logon.SampleLogonQRAuthentication} + * Reference: SteamKit issue + * * @author lngtr * @since 2018-02-28 */ diff --git a/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/MachineAuthDetails.java b/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/MachineAuthDetails.java index 27631b73..6756df14 100644 --- a/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/MachineAuthDetails.java +++ b/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/MachineAuthDetails.java @@ -6,8 +6,11 @@ import in.dragonbra.javasteam.types.JobID; /** + * @deprecated Steam no longer sends machine auth as of 2023, use SteamAuthentication. + * * Represents details required to complete a machine auth request. */ +@Deprecated public class MachineAuthDetails { private JobID jobID; diff --git a/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/SteamUser.java b/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/SteamUser.java index 42143680..5d4b4693 100644 --- a/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/SteamUser.java +++ b/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/SteamUser.java @@ -231,7 +231,9 @@ public void logOff() { * This should normally be used in response to a {@link UpdateMachineAuthCallback}. * * @param details The details pertaining to the response. + * @deprecated Steam no longer sends machine auth as of 2023, use SteamAuthentication. */ + @Deprecated public void sendMachineAuthResponse(MachineAuthDetails details) { if (details == null) { throw new IllegalArgumentException("details is null"); diff --git a/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/callback/LoggedOnCallback.java b/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/callback/LoggedOnCallback.java index 0b53a01d..c7733514 100644 --- a/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/callback/LoggedOnCallback.java +++ b/src/main/java/in/dragonbra/javasteam/steam/handlers/steamuser/callback/LoggedOnCallback.java @@ -46,6 +46,7 @@ public class LoggedOnCallback extends CallbackMsg { private byte[] steam2Ticket; + @Deprecated private String webAPIUserNonce; private String ipCountryCode; @@ -204,8 +205,10 @@ public byte[] getSteam2Ticket() { } /** + * @deprecated Steam no longer sends webapi nonce as of October 2023, use SteamAuthentication. * @return the WebAPI authentication user nonce. */ + @Deprecated public String getWebAPIUserNonce() { return webAPIUserNonce; }