question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValidateAuthTicektResponce_t doesn't callback on servers

See original GitHub issue

When we initialize as SteamGameServer and call BeginAuthSession The ValidateAuthTicektResponce_t never responds

We have been doing a lot of troublshooting on this and I finally took the mind to check the definitions … I noted that there is no SteamGameServer version of this callback there is only the one ValidateAuthTicektResponce_t defined in SteamCallbacks.cs and that definition sets the callback ID as

public const int k_iCallback = Constants.k_iSteamUserCallbacks + 43;

should there be a GameServerValidateAuthTicketResponce_t where in

public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 43;

If that is the case it would explain why we dont get the callback as expected and would sugest there is also an issue with GetAuthSessionTicketResponse_t similar thing … should have a GameServer variant

Then again I could be insain and something else is preventing the callback from returning but this works perfrectly on the Client API should be the same code for Server the only difference being

SteamGameServer.BeginAuthSession

as oppsed to

SteamUser.BeginAuthSession

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:48 (36 by maintainers)

github_iconTop GitHub Comments

2reactions
rlabrecquecommented, Nov 26, 2022

So I got to look into this again, I had to make one change in the test repo, and then it seemed to work fine:

m_ValidateAuthSessionTicketResponce = Callback<ValidateAuthTicketResponse_t>.Create(TestCB); To m_ValidateAuthSessionTicketResponce = Callback<ValidateAuthTicketResponse_t>.CreateGameServer(TestCB);

To match the usage in C++ that Spacewar has where they create it with STEAM_GAMESERVER_CALLBACK

These seem to be the only usages of the GameServer callback though for what ever reason:

// Tells us when we have successfully connected to Steam
STEAM_GAMESERVER_CALLBACK( CSpaceWarServer, OnSteamServersConnected, SteamServersConnected_t );

// Tells us when there was a failure to connect to Steam
STEAM_GAMESERVER_CALLBACK( CSpaceWarServer, OnSteamServersConnectFailure, SteamServerConnectFailure_t );

// Tells us when we have been logged out of Steam
STEAM_GAMESERVER_CALLBACK( CSpaceWarServer, OnSteamServersDisconnected, SteamServersDisconnected_t );

// Tells us that Steam has set our security policy (VAC on or off)
STEAM_GAMESERVER_CALLBACK( CSpaceWarServer, OnPolicyResponse, GSPolicyResponse_t );

// Tells us a client has been authenticated and approved to play by Steam (passes auth, license check, VAC status, etc...)
STEAM_GAMESERVER_CALLBACK( CSpaceWarServer, OnValidateAuthTicketResponse, ValidateAuthTicketResponse_t );

// All connection changes are handled through this callback
STEAM_GAMESERVER_CALLBACK(CSpaceWarServer, OnNetConnectionStatusChanged, SteamNetConnectionStatusChangedCallback_t);
1reaction
JamesMcGheecommented, Nov 26, 2022

I have updated the test repo and our asset this issue should now be resolved

Thank you everyone

Read more comments on GitHub >

github_iconTop Results From Across the Web

App doesn't seem to callback after authentication
The issue is once i try to authenticate using one of the options from soundcloud either Facebook, Gmail the screen is just blank...
Read more >
RemoteCertificateValidationCall...
I can see the remote validation callback has been added to SslStream (wrapped in a callback within HttpsConnectionMiddleware) but the exception ...
Read more >
Callbacks not called when using server api functions on ...
I'm using only c++ and I got it eventually working by using the sdk in Actor and not in UObject. And the client...
Read more >
Callback to Drupal site after curl call to 3rd party site doesn't ...
It doesn't matter whether I authenticate, immediately go to the 3rd party site, and then wait there 120 seconds, or if I authenticate,...
Read more >
Do you need to verify the ID token in afterCallback?
First, in the SDK configuration option afterCallback , can one assume that the ID token (a JWT) passed in has already been trusted/verified...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found