Skip to content

Feat/login #324

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Feat/login #324

wants to merge 2 commits into from

Conversation

jaymie9019
Copy link

@jaymie9019 jaymie9019 commented Mar 14, 2025

Description

support login with webLogonNonce and connection with proxy

  1. webLogonNonce login is more safe, it's once time token which can login account to connect steam server, you can get the webLogonNonce from https://steamcommunity.com/chat/clientjstoken

  2. proxy support is necessary I think, GC server recently give the more strict limit for ip, proxy is the better way to make connection with GC server

Checklist

  • Code compiles correctly
  • All tests passing
  • Samples run successfully

Copy link
Collaborator

@LossyDragon LossyDragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine with a couple of nits commented.

SteamKit has flagged all previous proxy PR attempts as shady. What would be the use cases for this if it was merged?

LogManager.addListener(new DefaultLogListener());

new SampleWebLogonNonce(args[0], args[1]).run();
Thread.sleep(1000000L);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is needed here. Once the client is finished, it should terminate instead of waiting a long time.

client.setProxy(proxy);
client.run();

Thread.sleep(1000000L);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is needed here. Once the client is finished, it should terminate instead of waiting a long time.



/**
* @author cap_qin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This an alias? Also date would be nice here.

Socket underlying = new Socket(new Proxy(Proxy.Type.SOCKS, proxy.address()));
underlying.connect(endPoint,timeout);
socket = underlying;
// socket = factory.createSocket(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove block if no longer needed.

client = HttpClient(CIO) {
install(WebSockets) {
pingInterval = timeout.toDuration(DurationUnit.SECONDS)
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

English comment is preferred to keep consistency.

logon.body.setAccountName(details.username);
logon.body.setWebLogonNonce(details.webLogonNonce);
logon.body.setClientOsType(EOSType.Web.code());
logon.body.setUiMode(4);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would EUIMode work here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will remove it, It's not necessary

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

Successfully merging this pull request may close these issues.

2 participants