[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/
also have this problem. I think steam have changed auth process
Same problem
@voviz had you solved it ?
+1
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?
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.
Library probably needs to implement new OAuth based login and SteamGuard management to work, like here: https://github.com/geel9/SteamAuth/commit/d44e99dc976cb5a21185e1e250d46235f20f6968
having the same problem
same issue. Need to fix asap.
Also hitting this.
This is still a big problem.
Same problem here... any support?
Find any solution? Help pls <3
Maybe there is another way to register guard?
is issue fixed ?
Is anyone working on fixing this?
Nope, use SDA, the best way to register and use steam authenticator
Elaborate?
Is there any other guard generated python library