Skip to content
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

Implement moving of steam authenticator from another device #85

Closed
wants to merge 1 commit into from

Conversation

Rudokhvist
Copy link
Contributor

Steam mobile app allows user to move authenticator to another device, as long as they still have valid phone number. From what I've heard (haven't tested myself), trade hold period is much lower this way comparing to removing authenticator and making new one, and also it's just convenient. So I decided SteamAuth (and SDA) need this feature. PR to SDA will follow.

@Jessecar96
Copy link
Collaborator

Thank you for the PR but this method no longer works since Steam updated their app.

@Jessecar96 Jessecar96 closed this Jun 29, 2023
@dyc3
Copy link

dyc3 commented Jun 29, 2023

For anyone that's curious, the correct way to do this is to call RemoveAuthenticatorViaChallengeStart with generate_new_token = true, followed by RemoveAuthenticatorViaChallengeContinue on ITwoFactorService. All the parameters can be found in steam's protobuf files: https://github.com/SteamDatabase/Protobufs/blob/master/webui/service_twofactor.proto

@Moder112
Copy link

@dyc3 Did you get that to work?
I tried adding it as a feature to steam-user, however sending the RemoveAuthenticatorViaChallengeStart protobuf resulted in a empty response, and no code being sent.
As for the service api it calls for the "key" parameter, which elsewhere is the api key, but attempting to use it here just results in a 401 and the message to check the key, so I'm not sure if that's correct.

I'm honestly a bit stuck here and I'm interested in hearing how did you get it to work.

@dyc3
Copy link

dyc3 commented Jul 13, 2023

The key parameter is actually not necessary, you have to send the access_token jwt that you get from logging in. This is how steamguard-cli does it: https://github.com/dyc3/steamguard-cli/blob/master/steamguard/src/transport/webapi.rs#L57

If you have any other questions, feel free to open a discussion on the steamguard-cli repo so we aren't spamming the people here with notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants