steam icon indicating copy to clipboard operation
steam copied to clipboard

[BUG] MobileWebAuth login doesn't work

Open voviz opened this issue 2 years ago • 21 comments

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 avatar Jun 14 '23 11:06 voviz

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

artemiyDev avatar Jun 14 '23 13:06 artemiyDev

Same problem

arynyklas avatar Jun 15 '23 07:06 arynyklas

@voviz had you solved it ?

Zachxz0 avatar Jun 16 '23 02:06 Zachxz0

+1

serveroid avatar Jun 16 '23 16:06 serveroid

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?

serveroid avatar Jun 18 '23 18:06 serveroid

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.

Rosuav avatar Jun 25 '23 02:06 Rosuav

Library probably needs to implement new OAuth based login and SteamGuard management to work, like here: https://github.com/geel9/SteamAuth/commit/d44e99dc976cb5a21185e1e250d46235f20f6968

REDNBLACK avatar Jun 29 '23 04:06 REDNBLACK

having the same problem

hani9898 avatar Jun 29 '23 06:06 hani9898

same issue. Need to fix asap.

h3902340 avatar Jul 01 '23 18:07 h3902340

Also hitting this.

asa avatar Jul 08 '23 22:07 asa

This is still a big problem.

awxk avatar Jul 08 '23 23:07 awxk

Same problem here... any support?

nan4k7 avatar Jul 17 '23 23:07 nan4k7

Find any solution? Help pls <3

lkurgan55 avatar Jul 30 '23 17:07 lkurgan55

Maybe there is another way to register guard?

lkurgan55 avatar Jul 31 '23 15:07 lkurgan55

is issue fixed ?

masterwishx avatar Aug 31 '23 08:08 masterwishx

Is anyone working on fixing this?

Heehes avatar Oct 18 '23 14:10 Heehes

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

lkurgan55 avatar Oct 18 '23 18:10 lkurgan55

Elaborate?

Rosuav avatar Oct 18 '23 20:10 Rosuav

Is there any other guard generated python library

Heehes avatar Oct 19 '23 10:10 Heehes