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

[BUG] MobileWebAuth login doesn't work #442

Open
voviz opened this issue Jun 14, 2023 · 19 comments
Open

[BUG] MobileWebAuth login doesn't work #442

voviz opened this issue Jun 14, 2023 · 19 comments

Comments

@voviz
Copy link

voviz commented Jun 14, 2023

Description
MobileWebAuth login doesn't work. Function _finalise_login throws an error -

line 323, in _finalize_login
    data = json.loads(login_response['oauth'])
                      ~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'oauth'

Everything worked fine until today, so probably the response body changed. I have changed the function to

def _finalize_login(self, login_response):
       data = login_response['transfer_parameters']
       self.steam_id = SteamID(data['steamid'])
       self.oauth_token = data['auth']

And the login seems to be ok. However steam guard can not be added
Code -

wa = MobileWebAuth("LOGIN")
wa.cli_login(password="PASSWORD")
sa = SteamAuthenticator(backend=wa)
status = sa.status()

Exception -

 line 267, in status
    return self._send_request('QueryStatus', {'steamid': self.backend.steam_id})
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  line 155, in _send_request
    raise SteamAuthenticatorError("Error adding via WebAPI: %s" % str(exp))
steam.guard.SteamAuthenticatorError: Error adding via WebAPI: 401 Client Error: Unauthorized for url: https://api.steampowered.com/ITwoFactorService/QueryStatus/v1/
@voviz voviz changed the title [BUG] [BUG] MobileWebAuth login doesn't work Jun 14, 2023
@artemiyDev
Copy link

also have this problem. I think steam have changed auth process

@arynyklas
Copy link

Same problem

@Zachxz0
Copy link

Zachxz0 commented Jun 16, 2023

@voviz had you solved it ?

@serveroid
Copy link

+1

@serveroid
Copy link

Description MobileWebAuth login doesn't work. Function _finalise_login throws an error -

line 323, in _finalize_login
    data = json.loads(login_response['oauth'])
                      ~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'oauth'

Everything worked fine until today, so probably the response body changed. I have changed the function to

def _finalize_login(self, login_response):
       data = login_response['transfer_parameters']
       self.steam_id = SteamID(data['steamid'])
       self.oauth_token = data['auth']

And the login seems to be ok. However steam guard can not be added Code -

wa = MobileWebAuth("LOGIN")
wa.cli_login(password="PASSWORD")
sa = SteamAuthenticator(backend=wa)
status = sa.status()

Exception -

 line 267, in status
    return self._send_request('QueryStatus', {'steamid': self.backend.steam_id})
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  line 155, in _send_request
    raise SteamAuthenticatorError("Error adding via WebAPI: %s" % str(exp))
steam.guard.SteamAuthenticatorError: Error adding via WebAPI: 401 Client Error: Unauthorized for url: https://api.steampowered.com/ITwoFactorService/QueryStatus/v1/

find any solution?

@Rosuav
Copy link

Rosuav commented Jun 25, 2023

I have changed the function to

def _finalize_login(self, login_response):
       data = login_response['transfer_parameters']
       self.steam_id = SteamID(data['steamid'])
       self.oauth_token = data['auth']

And the login seems to be ok. However steam guard can not be added

Are you able to get trades to work? I haven't been able to.

@REDNBLACK
Copy link

Library probably needs to implement new OAuth based login and SteamGuard management to work, like here: geel9/SteamAuth@d44e99d

@hani9898
Copy link

hani9898 commented Jun 29, 2023

having the same problem

@h3902340
Copy link

h3902340 commented Jul 1, 2023

same issue. Need to fix asap.

@asa
Copy link

asa commented Jul 8, 2023

Also hitting this.

@awxk
Copy link

awxk commented Jul 8, 2023

This is still a big problem.

@nan4k7
Copy link

nan4k7 commented Jul 17, 2023

Same problem here... any support?

@lkurgan55
Copy link

Find any solution? Help pls <3

@lkurgan55
Copy link

Maybe there is another way to register guard?

@masterwishx
Copy link

is issue fixed ?

@Heehes
Copy link

Heehes commented Oct 18, 2023

Is anyone working on fixing this?

@lkurgan55
Copy link

Nope, use SDA, the best way to register and use steam authenticator

@Rosuav
Copy link

Rosuav commented Oct 18, 2023

Elaborate?

@Heehes
Copy link

Heehes commented Oct 19, 2023

Is there any other guard generated python library

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

No branches or pull requests