-
Notifications
You must be signed in to change notification settings - Fork 3
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
2FA code not being accepted. #1
Comments
Because Valve changed the login mechanism. (As stated here ValvePython/steam#450). Unfortunately it seems like the library (ValvePython/steam) is inactive for awhile. I plan to switch the library soon. It should work after that. |
Can not test fix, 2FA code not sent until prompt is advanced past the entry line. username > pass > "2FA code (case insensitive) : Unless I advance past the entry field by entering the wrong code, I will not recieve a 2FA code. Tested on SteamOS Arch. |
Due to Steam API changes the current underlying API does not support Steam Guard push notification. So you need to get the 2FA code manually. Steps: Open Steam Mobile App -> Press the Shield tab at the bottom row -> Press "Show Steam Guard Code" -> Press "Show Steam Guard Code" again -> Enter the 5 characters manually. |
Ah, that might be it. I don't use the SteamGuard app. I still have mine set to email verification. The email was being sent at the proper time on v0.0.62, however the API was not up to date as you mentioned. Now, the email only gets sent AFTER I push the script past the entry for the 2FA code. Assuming this has to do with the new API. I don't expect you to write code specifically for people purposefully using outdated security measures, so I will appreciate the work thus far. If you would like me to mark this closed please let me know. |
@dilydaly Question: Were you be able to login with the 2FA sent to your Email? I guess the code sent to Email and the mobile authenticator are using the same shared_secret to generate the same OTP. If that is the case I'll create an option to support this scenario. |
No. Both in v0.0.62 and v0.0.63 v0.0.62 - 2FA email is sent at the correct time, but not accepted.
v0.0.63 - 2FA email not sent until you advance past the 2FA entry field.
I have tested various waiting times but it is very clear that advancing the script to the next line is what triggers the email send. |
@dilydaly Just a theory: The OTP changes every 30 seconds. You should be able to use the same code if you re-initiate the authentication process once again with the previously sent code. I will create a test branch for you to test the functionality with altered authentication flow in the next a few days. |
So I adjust the acquire sequence of 2FA code |
-Happy new years!- RESULTS: TEST WITH INCORRECT LOGIN - behaves correctly
TEST WITH LOWERCASE AUTH CODE:
TEST WITH UPPERCASE AUTH CODE:
|
Happy New Year 😄 So I create another account with Email 2FA enabled instead of mobile authenticator. It turns out that Steam treats the codes differently. The API ( Please try again with this commit version |
Good Progress! RESULTS:
|
MODERATE SUCCESS! RESULTS:
|
Hi @dilydaly Appreciate the constant feedback. Figured out why is the code not sent at the correct timing (due to some stupid mistake). I have integrate the changes to master branch and published as v0.0.67. In addition, config file is now required if 2FA code is sent to Email when authenticating (only). Please refer to the And issue the command like Please let me know if the issue is finally resolved. Thanks. |
Confusing behaviour, not sure what to make of it. 2FA working inconsistently. RESULTS:
I will run some more tests on another system and update this post as needed. |
Hi @dilydaly According to the log you posted
and
Suggest that you might accidentally use the old version instead. Please ensure that you use the latest version with |
Behaviour seems to have reverted to before two weeks ago: #1 (comment) RESULTS:
|
Hi @dilydaly You still need a config and specify |
Success!!! Fully functional. Prior issues update entirely due to user illiteracy. Closing issue. RESULTS: Fully functional once config file was setup and argument to use it applied.
|
Possible issue with 2FA on fresh install.
Running Steamdeck OLED Arch -> git clone repo -> "scsd -a name" -> password
After, email code is requested and even when typed all caps with or without spaces it fails to login.
log:
2023-12-03 09:45:05 [INFO] scsd-v0.0.61 started
2023-12-03 09:45:05 [INFO] Files will be saved to './data'
2023-12-03 09:45:05 [ERROR] No session found. Please re-run the program with -a first
2023-12-03 09:45:09 [INFO] scsd-v0.0.61 started
2023-12-03 09:45:09 [INFO] Files will be saved to './data'
2023-12-03 09:45:15 [ERROR] Login fail, please try again
2023-12-03 09:45:18 [INFO] scsd-v0.0.61 started
2023-12-03 09:45:18 [INFO] Files will be saved to './data'
2023-12-03 09:46:01 [ERROR] Login fail, please try again
2023-12-03 09:54:46 [INFO] scsd-v0.0.61 started
2023-12-03 09:54:46 [INFO] Files will be saved to './data'
2023-12-03 09:55:41 [ERROR] Login fail, please try again
2023-12-03 09:59:35 [INFO] scsd-v0.0.61 started
2023-12-03 09:59:35 [INFO] Files will be saved to './data'
2023-12-03 10:00:12 [ERROR] Login fail, please try again
2023-12-03 10:04:31 [INFO] scsd-v0.0.61 started
2023-12-03 10:04:31 [INFO] Files will be saved to './data'
2023-12-03 10:04:55 [ERROR] Login fail, please try again
Update:
Tested on Windows 10 install, same result.
The text was updated successfully, but these errors were encountered: