ValvePython / steam

☁️ Python package for interacting with Steam
http://steam.readthedocs.io
MIT License
1.06k stars 129 forks source link

403 Client Error: Forbidden for url: https://api.steampowered.com/ISteamUserAuth/AuthenticateUser/v1/ #334

Closed PdA1337 closed 2 years ago

PdA1337 commented 3 years ago

resp = client.send_job_and_wait(MsgProto(EMsg.ClientRequestWebAPIAuthenticateUserNonce), timeout=7) skey,ekey = generate_session_key() data = { 'steamid': client.steam_id, 'sessionkey': ekey, 'encrypted_loginkey': symmetric_encrypt(resp.webapi_authenticate_user_nonce.encode('ascii'), skey), } resp = webapi.post('ISteamUserAuth', 'AuthenticateUser', 1, params=data)

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.steampowered.com/ISteamUserAuth/AuthenticateUser/v1/

i want to know why?

rossengeorgiev commented 3 years ago

No idea. I suggest using: https://steam.readthedocs.io/en/latest/api/steam.client.html?highlight=get_web_session#steam.client.SteamClient.get_web_session

rossengeorgiev commented 2 years ago

Closing due to inactivity