Skip to content

Commit

Permalink
Deprecate WebAPIUserNonce in logon, and machine auth callback
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Oct 18, 2023
1 parent 76d927b commit 68beb55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SteamKit2/SteamKit2/Steam/Handlers/SteamUser/Callbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public sealed class LoggedOnCallback : CallbackMsg
/// <summary>
/// Gets the WebAPI authentication user nonce.
/// </summary>
[Obsolete("Steam no longer sends webapi nonce as of October 2023, use SteamAuthentication.")]
public string? WebAPIUserNonce { get; private set; }

/// <summary>
Expand Down Expand Up @@ -139,7 +140,9 @@ internal LoggedOnCallback( CMsgClientLogonResponse resp )

this.IPCountryCode = resp.ip_country_code;

#pragma warning disable CS0618 // Type or member is obsolete
this.WebAPIUserNonce = resp.webapi_authenticate_user_nonce;
#pragma warning restore CS0618 // Type or member is obsolete

this.VanityURL = resp.vanity_url;

Expand Down Expand Up @@ -360,6 +363,7 @@ internal WalletInfoCallback( CMsgClientWalletInfoUpdate wallet )
/// <summary>
/// This callback is received when the backend wants the client to update it's local machine authentication data.
/// </summary>
[Obsolete("Steam no longer sends machine auth as of 2023, use SteamAuthentication.")]
public sealed class UpdateMachineAuthCallback : CallbackMsg
{
/// <summary>
Expand Down
4 changes: 4 additions & 0 deletions SteamKit2/SteamKit2/Steam/Handlers/SteamUser/SteamUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public AnonymousLogOnDetails()
/// <summary>
/// Represents details required to complete a machine auth request.
/// </summary>
[Obsolete("Steam no longer sends machine auth as of 2023, use SteamAuthentication.")]
public sealed class MachineAuthDetails
{
/// <summary>
Expand Down Expand Up @@ -445,6 +446,7 @@ public void LogOff()
/// This should normally be used in response to a <see cref="UpdateMachineAuthCallback"/>.
/// </summary>
/// <param name="details">The details pertaining to the response.</param>
[Obsolete("Steam no longer sends machine auth as of 2023, use SteamAuthentication.")]
public void SendMachineAuthResponse( MachineAuthDetails details )
{
if ( details == null )
Expand Down Expand Up @@ -556,7 +558,9 @@ void HandleUpdateMachineAuth( IPacketMsg packetMsg )
{
var machineAuth = new ClientMsgProtobuf<CMsgClientUpdateMachineAuth>( packetMsg );

#pragma warning disable CS0618 // Type or member is obsolete
var callback = new UpdateMachineAuthCallback( packetMsg.SourceJobID, machineAuth.Body );
#pragma warning restore CS0618 // Type or member is obsolete
Client.PostCallback( callback );
}
void HandleSessionToken( IPacketMsg packetMsg )
Expand Down

0 comments on commit 68beb55

Please sign in to comment.