steam: [BUG] MobileWebAuth login doesn't work
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/
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 33
- Comments: 19
+1
find any solution?
@voviz had you solved it ?
is issue fixed ?
Maybe there is another way to register guard?
Find any solution? Help pls ❤️
This is still a big problem.
Also hitting this.
Are you able to get trades to work? I haven’t been able to.
Is anyone working on fixing this?
Same problem here… any support?
same issue. Need to fix asap.
having the same problem
Library probably needs to implement new OAuth based login and SteamGuard management to work, like here: https://github.com/geel9/SteamAuth/commit/d44e99dc976cb5a21185e1e250d46235f20f6968
Same problem
also have this problem. I think steam have changed auth process