Add option to specify steam guard code via command line options
This would allow for a full "non-interactive" mode when used on steam accounts with mobile steam guard.
With the new authentication system (coming soon to DD) you should be able to approve Steam Guard via the mobile app, without needing to actually enter a code.
approve Steam Guard via the mobile app
That's not my point. I have a shared secret, I can generate a code from that secret. I'm interested in full automation (no humans involved). And no, saving the "password" is not always a viable option for me. So being able to generate a code that's like 5 seconds ahead and pass it directly as an argument would allow for that pretty nicely.
Can you elaborate as to what your full use-case is?
With the recent changes to Steam authentication, I don't know if or for how much longer supplying your own external Guard code in advance will work.
Can you elaborate as to what your full use-case is?
I want to be able to Download and analyze game updates as they come out. The account I have the games on has (well had, disabled it for now) steam guard. I have dumped the shared secret and I'm able to generate steam guard codes for it without actually using the app. I want to have a way where I can pre-calculate the guard code using an external tool (all you need for that is the secret and current time) and supply it as an argument/env variable so that the app uses it instead of asking me for one (the same way the password input is done).
With the recent changes to Steam authentication, I don't know if or for how much longer supplying your own external Guard code in advance will work.
Pretty sure it will. I don't think the codes are going away any time soon. The only thing that changes is the API they are passed on to. The official steam client always has an option to "Use a code instead". The new API still supports codes just fine. Many people like me don't even have the official steam app installed and just use external tools so please don't restrict the new steam authentication to the "approve in-app" mode only, codes still work and are supported afaik.
I'll need to look over the integration code that xPaw put together but I think it should be doable with a custom IAuthenticator.
piping the TOTP code into the command seems to work for accounts that don't have the mobile app setup.
Would still be nice to have an option for accounts that do have the mobile app setup.