Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules do not work, as steam change login flow. so web cookies do not work!.. #70

Open
quer opened this issue Oct 19, 2023 · 7 comments

Comments

@quer
Copy link
Owner

quer commented Oct 19, 2023

so steam change the login flow.
So currently, the hole project, do not work!

Im looking into it. ASF have solved it. i do see how, But it done here:
JustArchiNET/ArchiSteamFarm@d571cd9?diff=unified

If you have any knowledge on this. do take contact to me!.

you might read more here:
JustArchiNET/ArchiSteamFarm#3043

@HenkerX64
Copy link
Contributor

Check how is working "steam-session" package

@HenkerX64
Copy link
Contributor

I checked our solution from this summer sale and it works fine. @SENPAY98K, probably can help you

@quer
Copy link
Owner Author

quer commented Oct 19, 2023

Hey! So that do still work? then i will have a look, how it setup

@HenkerX64
Copy link
Contributor

hmm, I am not sure now, I tested only login from last refresh token

@quer
Copy link
Owner Author

quer commented Oct 19, 2023

The way i get the session/cookies to day, is when you are login to steam the socket, it provie a "key" ( webapi_authenticate_user_nonce ) , that can be used to sign direct into steam.

i am reading into the "steam-session", That is just working as you sing into the phone, and get the cookies like that. Im not toral sure, but im look into it.

if you are using it , can i get you to conferm that the cookies work.

@quer
Copy link
Owner Author

quer commented Oct 23, 2023

I have found a solution for the new login flow. Im working on adding it to the core of this project.

so it shoud be added to day, or tomorrow.

@quer
Copy link
Owner Author

quer commented Oct 23, 2023

It almost ready, But do not work fully yet. No sure why. i have a proof of concept, that work as it shoud.

Rest is just the proof of concept. to ensure i don't lose it:

var webCookies = []; 
webCookies.push("sessionid=xxxxxxxxx");
webCookies.push("steamLoginSecure=xxxxxxxxx");

const request = require('request');
var defaultTimeout = 30000;
var requestWrapper1 = request.defaults({
    timeout: defaultTimeout
});
var jar = request.jar();
var request2 = requestWrapper1.defaults({jar: jar});
webCookies.forEach(cookie => {
    jar.setCookie(request.cookie(cookie), "https://store.steampowered.com");
    jar.setCookie(request.cookie(cookie), "https://steamcommunity.com");
    jar.setCookie(request.cookie(cookie), "https://checkout.steampowered.com");
});
JoinGroup("https://steamcommunity.com/groups/156as8464w3").then(function () {
    console.log("done!");
})
function JoinGroup(groupUrl) {
    return new Promise(function (resolve, reject) {
        request2.post({
            url: groupUrl,
            form:{
                sessionID: sessionID,
                action: "join"
            },
            json: true
        }, function (error, response, body) {
            if(error){
                reject(error);
                return
            }
            resolve();
        });
    })
}

the above will join the group, but i have tryed to mirror it in the project.
by: https://github.com/quer/the-steam-awards/blob/70-modules-do-not-work-as-steam-change-login-flow-so-web-cookies-do-not-work/lib/request.js#L23C19-L23C19
then in the test module, just call the post direct, like in the example
https://github.com/quer/the-steam-awards/blob/70-modules-do-not-work-as-steam-change-login-flow-so-web-cookies-do-not-work/modules/testing/test.js#L14C28-L14C28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants