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

Servers need authentication #36

Open
MarmeladeTheCat opened this issue Oct 23, 2023 · 4 comments
Open

Servers need authentication #36

MarmeladeTheCat opened this issue Oct 23, 2023 · 4 comments

Comments

@MarmeladeTheCat
Copy link

Whenever I try to open a server, I get the error message “You have been disconnected from the server. End reason: this server appears to be an online server and you are providing no authentication. Try authenticating first.” Last status: Connecting to server

Is there any way to resolve this? I am using working proxies and ports.

@zardoy
Copy link
Owner

zardoy commented Oct 25, 2023

Hi! For now only Java servers running in offline mode are supported. Otherwise you need to provide Microsoft account credentials for authentication which is not supported by the proxy at the moment. This is not hard to support so I might add it in the near future.

If you own the server you can change online mode to false in server.properties. Or the server is not running in online mode? Please let me know 🙏

@TapsHTS
Copy link

TapsHTS commented Apr 16, 2024

Any news about an auth system ? Or it is possible to explain how to enable auth when we clone the repo ?

@zardoy
Copy link
Owner

zardoy commented Apr 16, 2024

Any news about an auth system ? Or it is possible to explain how to enable auth when we clone the repo ?

I abandoned development of that system because:

  1. This can't be 100% safe. MC auth system doesn't support cors so its not possible to obtain the token on the client side (right in your browser). You have to send either send login/password, or (most likely) use oauth2 auth process provided by the server. In this case you will need to login/click continue in the popup window each time you want to connect to the server from the web.
  2. MS bans our server when we do the full auth pipeline for some reason. You can look into prismarineJSnode-minecraft-protocol/issues/372 to better understand the issue. I can find a solution for this but it will require more time.

Or it is possible to explain how to enable auth when we clone the repo ?

There are no features that are available only if you clone this locally. This feature is not implemented yet and there is no simple toggle. However, implementing simple auth in the proxy code can be relatively simple.

@zardoy
Copy link
Owner

zardoy commented May 4, 2024

I have updated the connect screen to support more options with the new proxy selector, so this feature is really close!

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

No branches or pull requests

3 participants