Jump to content
McKay Development

Steam updated their login flow


gud

Recommended Posts

Steam has updated their login flow, and now it seems logging in doesn't work as intended. When using "community.login" and using the session id and cookies given by that to send a httpRequestPost now throws an error.

 

Steam returns: You must be logged in to perform that action.

 

Is there any fix for this?

Link to comment
Share on other sites

2 hours ago, Dr. McKay said:

This is a known issue, see: https://github.com/DoctorMcKay/node-steamcommunity/issues/321

community.login isn't going to work until I can finish the v4 rewrite. Until then, you can either use steam-session or steam-user to get login cookies for use with steamcommunity.

I tried using steam-user and httpRequestPost still returns the same error as before?

I'm using the cookies and session id from steam-user in the headers I am passing

 

                        const user = new SteamUser({
                            httpProxy: proxyString
                        });

			user.logOn({
                            accountName: String(logOnOptions.accountName),
                            password: String(logOnOptions.password)
                        });

			user.on('loggedOn', function() {
                        	user.on('webSession', (sessionID, cookies) => {
                            		community.httpRequestPost('https://steamcommunity.com/actions/ReportAbuse/', {
                                    		form: { sessionid: sessionID, json: 1, abuseID: steam_id, eAbuseType: 14, abuseDescription: 					hijackQuotes[randomIndex], ingameAppID: '' },
                                    		headers: { Cookie: cookies, Host: 'steamcommunity.com', Origin: 'https://steamcommunity.com' },
                                    		json: true
                                }, (err, response, body) => {
                                   //Here body returns: You must be logged in to perform that action
                                   //And err returns "HTTP error 401"
                                }, "steamcommunity");
                            });
                        });

 

Edited by gud
Link to comment
Share on other sites

3 hours ago, Terry said:

Sir, looks like the domain checkout.steampowered.com cannot use the steamLoginSecure cookie for a long time since yesterday's update. Is there any way to keep the login status for this domain?

Works fine for me.

1 hour ago, gud said:

I tried using steam-user and httpRequestPost still returns the same error as before?

I'm using the cookies and session id from steam-user in the headers I am passing

 

                        const user = new SteamUser({
                            httpProxy: proxyString
                        });

			user.logOn({
                            accountName: String(logOnOptions.accountName),
                            password: String(logOnOptions.password)
                        });

			user.on('loggedOn', function() {
                        	user.on('webSession', (sessionID, cookies) => {
                            		community.httpRequestPost('https://steamcommunity.com/actions/ReportAbuse/', {
                                    		form: { sessionid: sessionID, json: 1, abuseID: steam_id, eAbuseType: 14, abuseDescription: 					hijackQuotes[randomIndex], ingameAppID: '' },
                                    		headers: { Cookie: cookies, Host: 'steamcommunity.com', Origin: 'https://steamcommunity.com' },
                                    		json: true
                                }, (err, response, body) => {
                                   //Here body returns: You must be logged in to perform that action
                                   //And err returns "HTTP error 401"
                                }, "steamcommunity");
                            });
                        });

 

Why are you doing all that and not just calling community.setCookies()?

Link to comment
Share on other sites

On 10/20/2023 at 6:56 AM, Dr. McKay said:

Works fine for me.

Why are you doing all that and not just calling community.setCookies()?

Yea, I tried using setCookies but it made no differance

Versions im using from NPM:

steam-user 5.0.1

steamcommunity 3.47.0

Node: v16.20.0

NPM: 8.19.4

Edited by gud
Link to comment
Share on other sites

19 hours ago, Terry said:

It doesn't work to get the refreshed cookie steamLoginSecure for checkout.steampowered.com .  If logged in by username , password and sharedsecret. it works.

But it worked for both methods 2 days ago. 

Env

node v20.8.1,  npm 10.1.0

image.png.c76fd7065631995c702e8877cc6a550a.png

Works fine for me.

17 hours ago, gud said:

...

I'm not going to provide support for automated abuse reporting.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...