JustArchiNET / ArchiSteamFarm

C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
Apache License 2.0
11.09k stars 1.04k forks source link

Investigate moving away from web api nonce tokens #3037

Closed JustArchi closed 11 months ago

JustArchi commented 11 months ago

Checklist

Enhancement purpose

3029 suggests that sooner or later web api nonce tokens will stop working, and rather sooner than later. We should move away from them and try to utilize access tokens from new login flow, which fortunately we've already managed to implement.

Solution

Find out method responsible for refreshing/getting new access token. Hint goes for CAuthentication_AccessToken_GenerateForApp_Request, then:

This all replaces functionality in ArchiWebHandler.Init(), since access token acts the same as steamLoginSecure.

Why currently available solutions are not sufficient?

Because there is a chance ASF will break in a way that will be much harder to fix than #3029.

Can you help us with this enhancement idea?

Yes, I can code the solution myself and send a pull request

Additional info

Thanks @xPaw

JustArchi commented 11 months ago

https://github.com/SteamRE/SteamKit/commit/4e5986d5949dbbeb1c245ef63aa3fa750e8067d8

lspeed-v commented 11 months ago

Hello @JustArchi, valve already did it. RequestWebAPIUserNonce - WebApi authorization is not works anymore. Guess this theme needs to be moved to High priority...

JustArchi commented 11 months ago

Closed since it's no longer relevant as the fix is mandatory now: https://github.com/JustArchiNET/ArchiSteamFarm/issues/3043