DoctorMcKay / node-steam-session

Node.js module for authenticating with the Steam auth server. Allows for generating refresh tokens and web auth cookies for use with steam-user and other packages.
https://www.npmjs.com/package/steam-session
MIT License
112 stars 20 forks source link

how to use BeginAuthSessionViaCredentials api #42

Closed gromaxbro closed 3 months ago

gromaxbro commented 3 months ago

https://api.steampowered.com/IAuthenticationService/BeginAuthSessionViaCredentials/v1/

account_name |   | string | Yes |   encrypted_password |   | string | Yes | password, RSA encrypted client side encryption_timestamp |   | uint64 | Yes | timestamp to map to a key - STime remember_login |   | bool | Yes | deprecated platform_type |   | {enum} | Yes |   persistence |   | {enum} | No | whether we are requesting a persistent or an ephemeral session website_id |   | string | No | (EMachineAuthWebDomain) identifier of client requesting auth device_details |   | {message} | Yes | User-supplied details about the device attempting to sign in guard_data |   | string | Yes | steam guard data for client login language |   | uint32 | Yes |  

like i know encrypted pass and timstamp my question is what to add in gaurd data and language? i have used rsa to encrypt the password


public_key = rsa.PublicKey(int(k1, 16), int(k2, 2))
encrypted_pass = b64encode(rsa.encrypt(password.encode("utf-8"), public_key)).decode("utf-8")

you guys know any docs or somthing

gromaxbro commented 3 months ago

image

DoctorMcKay commented 3 months ago

Read the code, I'm not here to do individual coaching.