-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to specify steam guard code via command line options #405
Comments
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. |
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. |
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).
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 |
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. |
I can. I am comfortable with my Linux terminal and supplying Steam Guard code from another CLI like It'll be a truly automated solution to download depots, without user interaction. That's what @dumbasPL was saying earlier. The last version that supported entering Steam Guard (although in interactive manner) is 2.5.0 |
Why don't you use -remember-password? |
I do, but eventually the stored login session expires (doesn't it?) and then we're at the same "I don't wanna pull my phone to enter 2FA when I can just use my lovely shell to do that for me". The session won't expire in case of frequent usage, but that's not always the case. |
Make an issue if it doesn't renew tokens, because it should before the token expires. (still implies you'd have to be running DD for it to renew) |
This would allow for a full "non-interactive" mode when used on steam accounts with mobile steam guard.
The text was updated successfully, but these errors were encountered: