-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Labels
Description
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/
Reactions are currently unavailable